On Wednesday 27 December 2006 11:32, Lukas Gebauer wrote:
> > The same problem occured to me. The error in the HTTP demo server is that
> > it closes the socket before all data are sent. This happens especially
> > with slow connections.
> >
> > To solve the problem just insert this line
> >
> > Sock.SetLinger(True, 10000);
>
> Is not 10000 seconds too much?
>
>From your documatation: 

Sets linger. Enabled linger means that the system waits another LINGER (in 
milliseconds) time for delivery of sent data. This function is only for 
stream type of socket! (TCP)

So it waits a maximum of 10 seconds. In the worst case the tcp/ip stack 
contains 64 kB of data when the SendBuffer procedure returns. So 10 seconds 
are quite low on an ISDN connection.

Best regards
Volker Zipfel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to