ironpython3 icon indicating copy to clipboard operation
ironpython3 copied to clipboard

test_timeout fails on Mono

Open slozier opened this issue 2 years ago • 0 comments

There appears to be two failures (only tested on Linux but I assume the issues are the same on macOS)

  1. The timeout values (in Socket.SendTimeout) only being stored in tens of milliseconds:
>>> import _socket
>>> s = _socket.socket()
>>> s.settimeout(1.234)
>>> s.gettimeout()
1.24
  1. When certain operations timeout (e.g. recv), the SocketException.SocketErrorCode is SocketError.WouldBlock instead of SocketError.TimedOut so we end up with an OSError instead of a socket.timeout. See https://github.com/mono/mono/issues/20381

slozier avatar Jul 31 '22 19:07 slozier