emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/websocket f902bc04db 010/114: * websocket.el: Fix proce


From: ELPA Syncer
Subject: [elpa] externals/websocket f902bc04db 010/114: * websocket.el: Fix process-coding-system for client connections.
Date: Wed, 15 Feb 2023 20:58:55 -0500 (EST)

branch: externals/websocket
commit f902bc04dbc5431771a2b9c33899152f57e6152f
Author: Andrew Hyatt <ahyatt@gmail.com>
Commit: Andrew Hyatt <ahyatt@gmail.com>

    * websocket.el: Fix process-coding-system for client connections.
      We previously set the coding-system to unix for encoding and
      decoding, then overwrote it with binary for encoding but not
      decoding.  I don't know why that happened, now we'll just set the
      coding system to binary for encoding and decoding, which fixes an
      issue with connections on Windows.
---
 websocket.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/websocket.el b/websocket.el
index 7ba3a537f4..d07d870d7a 100644
--- a/websocket.el
+++ b/websocket.el
@@ -840,10 +840,9 @@ connection, which should be kept in order to pass to
              :extensions (mapcar 'car (process-get server :extensions)))))
     (unless (member ws websocket-server-websockets)
       (push ws websocket-server-websockets))
-    (set-process-coding-system client 'unix 'unix)
     (process-put client :websocket ws)
     (set-process-filter client 'websocket-server-filter)
-    (set-process-coding-system client 'binary)
+    (set-process-coding-system client 'binary 'binary)
     (set-process-sentinel client
      (lambda (process change)
        (let ((websocket (process-get process :websocket)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]