philippe_44 wrote: 
> I tried to review the change to understand what could happen. It was a
> while when I did that, so it does not come back easily to me but
> @erland, would you happen to add a keep-alive header in your HTTP
> request? 
> 
> Michael, I think your change will work, but I purposely used the fact
> that "undef" numerically compared to 0 to close the connection in case
> of a faulty server that accepts a keep-alive request but does not put a
> content-length in its response (in such case, client does not know when
> body has been received). With your modification, connection will
> timeout, but I think body will still be received, but I don't know (need
> to read LMS code) if the body callback has to wait for the timeout to
> occur (probably, no?)

This is the code from my web page that implements the download link:
https://github.com/erland/erlandjava/blob/master/erland-webapp-download/trunk/src/erland/webapp/download/act/DownloadApplication.java

Not sure what’s set automatically but it neither seems to set keep-alive
nor Content-Length explicitly.
If I need to do something on my end it’s going to take some time, not
sure I still have a working build environment for this old code.



Erland Isaksson ('My homepage' (http://erland.isaksson.info))
LEAD PLATFORM DEVELOPER OF 'ICKSTREAM MUSIC PLATFORM'
(HTTP://WWW.ICKSTREAM.COM) -  A WORLD OF MUSIC AT YOUR FINGERTIPS

(Also developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=107707

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to