in reply to Re^2: socket read buffer full
in thread socket read buffer full
spmlingam's answer does address your problem. When B is about to write, use select to check if there's anything to read. If there's is, read until there isn't. Then proceed to write.
sathiya.sw's shutdown solution sounds more promising, though.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: socket read buffer full
by targetsmart (Curate) on Jan 07, 2009 at 12:13 UTC | |
by ikegami (Patriarch) on Jan 07, 2009 at 12:52 UTC | |
by zwon (Abbot) on Jan 07, 2009 at 12:29 UTC |