-
Ting-Wei Lan authored
FIONREAD ioctl on Linux reports the size of payload on UDP sockets. However, other systems usually add internal header size to the reported size, which vary between different operating systems and socket types. To make it work on more systems, we should follow what we do on Windows instead of using this unreliable FIONREAD ioctl. This fixes socket test on FreeBSD.
293c103a