Sendto(2) Never Reaches Wire
From: Michael B Allen (mba2000_at_ioplex.com)
Date: 02/19/05
- Previous message: David Schwartz: "Re: my heap keeps growing, even though I'm freeing memory!"
- Next in thread: David Schwartz: "Re: Sendto(2) Never Reaches Wire"
- Reply: David Schwartz: "Re: Sendto(2) Never Reaches Wire"
- Reply: Barry Margolin: "Re: Sendto(2) Never Reaches Wire"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 19 Feb 2005 00:16:59 -0500
I'm writing some async dns client code. I've noticed that if I send a
quick succession of 5 requests sometimes [1] the first two never reach
the wire even though sendto(2) correctly reports the number of bytes written
and select(2) claims the socket is writeable for each call. This isn't
a problem because the retry code can compensate but it happends pretty
consistently on my Linux 2.4.28 x86 laptop so I'm wondering if there's a
way to avoid it. Is this normal for a sendto implementation? Can someone
recommend a technique to maybe ensure a little higher success rate?
Thanks,
Mike
[1] If I run tests back to back within a few seconds all requests are
sent successfully but if I wait a few minutes the first two packets
never reach the wire.
- Previous message: David Schwartz: "Re: my heap keeps growing, even though I'm freeing memory!"
- Next in thread: David Schwartz: "Re: Sendto(2) Never Reaches Wire"
- Reply: David Schwartz: "Re: Sendto(2) Never Reaches Wire"
- Reply: Barry Margolin: "Re: Sendto(2) Never Reaches Wire"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]