I borrowed some code from HttpProt.pas to limit bandwidth
in my application. My application is a client socket talking
to a server in a proprietary protocol. When I download a large
file, the connection always break. When I observe the traffic
in Ethereal, I see many error (in red and black) packets saying
"TCP zero window" being sent to the server when it happens.
I suspect it has something to do with wsoNoReceiveLoop option,
Pause and Resume. I then disabled the code calling Pause and
Resume, but left this line in,

  ComponentOptions := ComponentOptions + [wsoNoReceiveLoop];

the problem remained. I then took the above line out, and
left Pause and Resume in, I was able to complete the download.

So, my question is, what is wsoNoReceiveLoop for (and why does
it work in my case without setting it), and is it safe to not
set it?

-- 
Best regards,
Jack

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to