]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes to common source files not applicable to open-vm-tools.
authorJohn Wolfe <jwolfe@vmware.com>
Tue, 21 Jul 2020 18:52:59 +0000 (11:52 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Tue, 21 Jul 2020 18:52:59 +0000 (11:52 -0700)
open-vm-tools/lib/asyncsocket/asyncSocketBase.c
open-vm-tools/lib/include/asyncsocket.h

index a6e450ecd1813577800de36103509515e9576a2d..731918890cb6dc5ccf4a5ebf5db4d9f79e375633 100644 (file)
@@ -791,6 +791,11 @@ AsyncSocket_MsgError(int asyncSockError)   // IN
       result = MSGID(asyncsocket.websocketupgradefailed)
                      "Upgrade to websocket error: NOT FOUND, status code 404";
       break;
+   case ASOCKERR_WEBSOCK_TOO_MANY_CONNECTION:
+      result = MSGID(asyncsocket.websockettoomanyconnection)
+                     "The server-side WebSocket connection limit has been exceeded,"
+                     " HTTP status code 429";
+      break;
    }
 
    if (!result) {
index 11e2750c6125e1cabc7f353e75339d2cd995867e..37081c0e4c7677d94b262f86565df4e58b9424e5 100644 (file)
@@ -81,9 +81,10 @@ extern "C" {
 #define ASOCKERR_NETUNREACH        14
 #define ASOCKERR_ADDRUNRESV        15
 #define ASOCKERR_BUSY              16
-#define ASOCKERR_PROXY_NEEDS_AUTHENTICATION 17
-#define ASOCKERR_PROXY_CONNECT_FAILED       18
-#define ASOCKERR_WEBSOCK_UPGRADE_NOT_FOUND  19
+#define ASOCKERR_PROXY_NEEDS_AUTHENTICATION  17
+#define ASOCKERR_PROXY_CONNECT_FAILED        18
+#define ASOCKERR_WEBSOCK_UPGRADE_NOT_FOUND   19
+#define ASOCKERR_WEBSOCK_TOO_MANY_CONNECTION 20
 
 /*
  * Cross-platform codes for AsyncSocket_GetGenericError():