diff options
author | Don Ward | 2010-05-06 10:02:35 -0400 |
---|---|---|
committer | Don Ward | 2010-05-06 14:40:48 -0400 |
commit | a61fc516f5deeef67b48a704c5426c3969d36248 (patch) | |
tree | 2f872243de305a42b54bc6dcfc06774e397b5eba /usrp2 | |
parent | 761a6f97a623e07f51743d70d1962c98b26bb599 (diff) | |
download | gnuradio-a61fc516f5deeef67b48a704c5426c3969d36248.tar.gz gnuradio-a61fc516f5deeef67b48a704c5426c3969d36248.tar.bz2 gnuradio-a61fc516f5deeef67b48a704c5426c3969d36248.zip |
Flush pending errors in gr_udp_sink on disconnect()
On some systems (e.g., Debian/lenny) UDP errors are reported on the
following send() or recv() call. To avoid having errors (such as
ECONNREFUSED) from an old connection showing up on the first write
to a new connection, we do a recv() on disconnect() to flush them.
This may not work for all errors on all systems, but it works in
some simple cases of interest.
Diffstat (limited to 'usrp2')
0 files changed, 0 insertions, 0 deletions