Simplify USE_SELECT usage
Return immediately when using d_residual.
(Otherwise recv may overwrite valid data in d_temp_buff.)
Defend against a peer that sends an invalid message length.
Move initialization of select timeout
Correct update of d_temp_offset (parallel construction)
Identify memory leaks that occur on error conditions
Use -1 as file descriptor "not open" value instead of 0
Add additional conditionalization of networking includes
Flush pending errors in gr_udp_sink on disconnect()
On some systems (e.g., Debian/lenny) UDP errors are reported on thefollowing send() or recv() call. To avoid having errors (such asECONNREFUSED) from an old connection showing up on the first writeto a new connection, we do a recv() on disconnect() to flush them....
Merge branch 'master' into udp
Also available in: