Forum > Networking and Web Programming

TFPHTTPServer issues

(1/2) > >>

ChristianH:
Hi,

i have a problem with the HTTP Server class. Under some circumstances the server ignores the request of the client. In my case (see the attached example) i want to open a video in VLC. Videolan opens the Dash Index file, and then it reads the first initialization segment. According to the VLC log it now tries to get the first video segment, but the server simply does not get the connection request. The result is that VLC freezes.

Maybe someone has an idea?

Christian

sash:
Is server threaded?

ChristianH:
Yes, i tried it with and without threaded. The behavior is the same.

Christian

sash:
I don't know how exactly your client works, I just guess it expects ranged partial content, while TFPHTTPServer's file serving is very basic (not to say dumb).

And what about simple plain files served to browser?

To know more, it's better to see detailed log, with Request and Response headers included.

ChristianH:
The example on the first post has the same issues. In theory a server should load the MPD file,

http://192.168.100.120:8082/ateme.mpd, then the init segment and after this the mp4 chunks. VLC does according to the logs the following:

[4184] adaptive stream filter debug: Retrieving http://192.168.100.120:8082/test-0-init.mp4v @0
[4184] main stream filter debug: resolving 192.168.100.120 ...
[4184] main stream filter debug: connecting to 192.168.100.120 port 8082 ...
..
[4184] adaptive stream filter debug: Retrieving http://192.168.100.120:8082/test-0-5245071.mp4v @0
- freeze, while the cpu usage raises up to 100%.

The web server receives:
/ateme.mpd
/ateme.mpd
/test-0-init.mp4v

The retrieving test-0-5245071.mp4v should fail since i don't provide this file (yet), but the server should at least get a connection request. I'm not sure where the issue is located, but it seem that Result:=Sockets.fpAccept(Socket,@Faddr,@L);  freezes in Function TInetServer.Accept : Longint;

Christian

Navigation

[0] Message Index

[#] Next page

Go to full version