Skip to content

Fix non-blocking socket reads and accepting sockets

Yorick Peterse requested to merge fix-socket-nonblocking-reads into master

This fixes two problems:

  1. When a socket was accepted using Socket.accept, TcpListener.accept, etc, it would be operating in blocking mode.
  2. Reading from a socket with a buffer size larger than the received message would not return, unless the socket was closed or a message with the right size was sent

Merge request reports