appveyor: remove cache
authorAndy Green <andy@warmcat.com>
Wed, 19 Jul 2017 07:29:38 +0000 (15:29 +0800)
committerAndy Green <andy@warmcat.com>
Wed, 19 Jul 2017 07:29:38 +0000 (15:29 +0800)
appveyor.yml
plugins/protocol_lws_meta.c

index 49adea5f478a4416fd79277631b0e944fcbf9f64..748ab1daaaa4bb383a66a876f4d55ec8b1354102 100644 (file)
@@ -22,8 +22,8 @@ install:
   - mkdir c:\assets\libuv
   - 7z x -oc:\assets\libuv win-libuv.zip
 #  - appveyor DownloadFile https://slproweb.com/download/Win32OpenSSL-1_0_2h.exe
-  - appveyor DownloadFile https://libwebsockets.org:444/Win32OpenSSL-1_0_2h.exe
-  - Win32OpenSSL-1_0_2h.exe /silent /verysilent /sp- /suppressmsgboxes
+#  - appveyor DownloadFile https://libwebsockets.org:444/Win32OpenSSL-1_0_2L.exe
+#  - Win32OpenSSL-1_0_2L.exe /silent /verysilent /sp- /suppressmsgboxes
   - appveyor DownloadFile https://libwebsockets.org:444/nsis-3.0rc1-setup.exe
   - cmd /c start /wait nsis-3.0rc1-setup.exe /S /D=C:\nsis
   - appveyor DownloadFile https://libwebsockets.org:444/sqlite-dll-win32-x86-3130000.zip
@@ -51,8 +51,8 @@ artifacts:
     name: lws.zip
     type: Zip
 
-cache:
-  - C:\OpenSSL-Win32
+    #cache:
+    #  - C:\OpenSSL-Win32
 
 matrix:
   fast_finish: true
index f20b9335e5c08600dfaf75cc4ae797f45a05c946..6a8eb16aed1799d9294606e01c5be6f6a8bd3841 100644 (file)
@@ -529,7 +529,8 @@ callback_lws_meta(struct lws *wsi, enum lws_callback_reasons reason,
                        *p++ = LWS_META_CMD_CLOSE_NOTIFY;
                        *p++ = LWS_META_TRANSPORT_OFFSET +
                                        lws_get_channel_id(pas->wsi);
-                       *p++ = pas->len - 2 + LWS_META_TRANSPORT_OFFSET;
+                       *p++ = (unsigned char)pas->len +
+                                       LWS_META_TRANSPORT_OFFSET - 2;
                        *p++ = *bin++;
                        *p++ = *bin++;
                        for (n = 0; n < (int)pas->len - 2; n++)