libmemcached: fix #58 (connect errno)
authorMichael Wallner <mike@php.net>
Wed, 22 Jan 2020 09:22:31 +0000 (10:22 +0100)
committerMichael Wallner <mike@php.net>
Wed, 22 Jan 2020 09:22:31 +0000 (10:22 +0100)
libmemcached/connect.cc

index 2de01494eae5476a7b2860a38ff74d2e734cf14b..1cfe7940037bdf0989d3b8ce7a14bdbea3a63703 100644 (file)
@@ -579,7 +579,6 @@ static memcached_return_t network_connect(memcached_instance_st* server)
       timeout_error_occured= true;
       break;
 
-    case EAGAIN:
 #if EWOULDBLOCK != EAGAIN
     case EWOULDBLOCK:
 #endif
@@ -617,6 +616,7 @@ static memcached_return_t network_connect(memcached_instance_st* server)
       // Probably not running service
 
     default:
+      memcached_set_errno(*server, local_error, MEMCACHED_AT);
       break;
     }