Blocking vs non-blocking mode
From: Puzzolino (puzzolino77_at_libero.it)
Date: 02/10/05
- Next message: Test: "Newby: is an UDP socket full-duplex?"
- Previous message: Arne Ludwig: "how to detect media connect/disconnect asynchronously at NDIS level"
- Next in thread: Itjalve: "RE: Blocking vs non-blocking mode"
- Reply: Itjalve: "RE: Blocking vs non-blocking mode"
- Reply: Michael K. O'Neill: "Re: Blocking vs non-blocking mode"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 10 Feb 2005 13:46:09 GMT
I've been using mainly blocking TCP sockets until now, with a thread
handling blocking sends/recvs. Now that I try non-blocking sockets, I've
found a problem, which turns out to be an interesting "feature" in the
blocking model.
If client A sends data throught his DSL connection to client B which still
uses a slow 56K internet connection, the traffic is somewhat "compensated"
in blocking mode; that is, client A will slow down automatically to match
client B speed.
In non-blocking mode, client A sends all data immediately as soon as he can,
no matter client B is able to get data in time; this results in data loss in
some cases.
Did anyone experience or find a solution to this problem?
- Next message: Test: "Newby: is an UDP socket full-duplex?"
- Previous message: Arne Ludwig: "how to detect media connect/disconnect asynchronously at NDIS level"
- Next in thread: Itjalve: "RE: Blocking vs non-blocking mode"
- Reply: Itjalve: "RE: Blocking vs non-blocking mode"
- Reply: Michael K. O'Neill: "Re: Blocking vs non-blocking mode"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|