test/lib_read_write: wait for readability before tryread
commit488a148d8b172e152e3450062b172ba516ab84b3
authorEric Wong <ew@debkfreebsd.(none)>
Mon, 2 Jul 2012 04:20:20 +0000 (2 04:20 +0000)
committerEric Wong <normalperson@yhbt.net>
Wed, 11 Jul 2012 22:28:04 +0000 (11 15:28 -0700)
tree65283207b7b6f77076909f660667b4c6c9d94b19
parentc79babfd175aa7b4be9d4d1a10a64c17b93730a0
test/lib_read_write: wait for readability before tryread

On FreeBSD, writing to a loopback TCP socket does not guarantee
immediate readability on the other end.

Tested on Debian GNU/kFreeBSD 6.0
test/lib_read_write.rb