Commits

Roger Light committed a8fe2fe

Fix for asynchronous connections on Windows. Closes bug #1249202.

Thanks to Xy Wang.

Comments (0)

Files changed (2)

   a broker that doesn't follow the spec.
 - Block in Python loop_stop() until all messages are sent, as the
   documentation states should happen.
+- Fix for asynchronous connections on Windows. Closes bug #1249202.
 
 Clients:
 - mosquitto_sub now uses fwrite() instead of printf() to output messages, so
 #ifdef WIN32
 		errno = WSAGetLastError();
 #endif
-		if(rc == 0 || errno == EINPROGRESS){
+		if(rc == 0 || errno == EINPROGRESS || errno == COMPAT_EWOULDBLOCK){
 			if(blocking){
 			/* Set non-blocking */
 #ifndef WIN32