On 02/10/2014 05:28 PM, David Woodhouse wrote: > I've now managed to get this actually passing packets, albeit > sporadically. > Nikos, I wonder if GnuTLS should be accepting EWOULDBLOCK on a read from > a non-blocking socket and treating it the same as EAGAIN? See > http://git.infradead.org/users/dwmw2/openconnect.git/commitdiff/b5df97e74b Yes, this is how errno is interpreted in windows: https://gitorious.org/gnutls/gnutls/source/505540944f1dd6a655a691714aed6d54ea7671fa:lib/system.c#L69 regards, Nikos