]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common source file changes not directly applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Wed, 4 Mar 2020 20:07:12 +0000 (12:07 -0800)
committerOliver Kurth <okurth@vmware.com>
Wed, 4 Mar 2020 20:07:12 +0000 (12:07 -0800)
Add a new error ASOCKERR_WEBSOCK_UPGRADE_NOT_FOUND in asyncsocket

open-vm-tools/lib/asyncsocket/asyncSocketBase.c
open-vm-tools/lib/include/asyncsocket.h

index 6298489e91df694865838bae327034aaa004f5a6..d214e9e1199cac797324e76d57bdafa5dd94404c 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2016-2019 VMware, Inc. All rights reserved.
+ * Copyright (C) 2016-2020 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -788,6 +788,10 @@ AsyncSocket_MsgError(int asyncSockError)   // IN
       result = MSGID(asyncsocket.proxyconnectfailed)
                      "Connection failed through proxy";
       break;
+   case ASOCKERR_WEBSOCK_UPGRADE_NOT_FOUND:
+      result = MSGID(asyncsocket.websocketupgradefailed)
+                     "Upgrade to websocket error: NOT FOUND, status code 404";
+      break;
    }
 
    if (!result) {
index 11b8c70d204da3770a60e919c4c30e16f1ca14e4..299118857ef3431530c033f5a2c7b2d95489b149 100644 (file)
@@ -83,6 +83,7 @@ extern "C" {
 #define ASOCKERR_BUSY              16
 #define ASOCKERR_PROXY_NEEDS_AUTHENTICATION 17
 #define ASOCKERR_PROXY_CONNECT_FAILED       18
+#define ASOCKERR_WEBSOCK_UPGRADE_NOT_FOUND  19
 
 /*
  * Cross-platform codes for AsyncSocket_GetGenericError():