Re: Excessive Delays in CAsyncSocket::Send()?
"Stephen Myers" <StephenMyers@discussions.microsoft.com> wrote>> I doubt
that attempting to set the buffer to zero has any effect at all.
The socket is free to ignore your request. Try to get it working without
any socket options, at least until everything is functioning.
That's where I am now. I'm wondering if my real problem isn't due to
sending before both sides of the connection have stablized. I do wait for
OnSend after OnConnect before I start sending. Without the SO_SNDBUF 0,
the
first response takes several seconds.
OnSend is good enough. As I understand it the response is very fast from
Linux/Wine but not with some other linux derivation. Seems clear the
problem is with the "some other" machine. I've used CAsyncSocket with
several network stacks in DSP chips with no such troubles, even at sustained
hundreds of Kbytes/sec.
Random thoughts: The geometrically increasing times is characteristic of
most retry algorithms. Have you examined the traffic with a network
sniffer? Or tried throttling the PC to use 10 Mbit ethernet instead of 100M
or 1G?
--
Scott McPhillips [VC++ MVP]