Skip to content

Commit

Permalink
#1211: a high timeout works better than blocking sockets?
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@13867 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 25, 2016
1 parent 460f54a commit 6620318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/server/server_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def start_websockify(self, conn, frominfo):
WIN32 = sys.platform.startswith("win")
if WIN32:
#the HTTP server fails on win32 if we don't use blocking sockets!
sock.setblocking(True)
sock.settimeout(10.0)
def new_websocket_client(wsh):
netlog("new_websocket_client(%s) socket=%s", wsh, sock)
wsc = WebSocketConnection(sock, conn.local, conn.remote, conn.target, conn.socktype, wsh)
Expand Down

0 comments on commit 6620318

Please sign in to comment.