On Monday, December 10, 2018 2:26 AM Andreas Schneider wrote: > Please check > > https://git.libssh.org/users/asn/libssh.git/log/?h=master-poll
Same behavior, as far as I can tell. In the case of a connection refused exceptfds is set and events is 0x310 ( POLLWRNORM | POLLRDNORM | POLLRDBAND ). That means revents is not zero so rc is incremented to 1 and returned. You might not be aware but Microsoft has a freely available Windows image with Visual Studio available here - https://developer.microsoft.com/en-us/windows/downloads/virtual-machines. You should be able to use to easily reproduce the issue on your local machine in a VM.
