Skip to content

Socket::available does not always return correct value for UDP #3589

@aleks-f

Description

@aleks-f

ioctl(FIONREAD) returns the exact number of pending datagram bytes on Linux; on other platforms, apparently there's no guarantee as to what is returned - to have the accurate length, recvfrom(MSG_PEEK) must be called

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions