diff src/plugins/plugin_xep_0065.py @ 1569:44854fb5d3b2

plugin XEP-0065: fixed CHUNK_SIZE to 4096 to avoid wild disconnection by some proxies (Prosody's proxy65 disconnect if it receive bigger chunks)
author Goffi <goffi@goffi.org>
date Sun, 08 Nov 2015 14:44:33 +0100
parents 7cc29634b6ef
children 37d4be4a9fed
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0065.py	Sun Nov 08 14:44:33 2015 +0100
+++ b/src/plugins/plugin_xep_0065.py	Sun Nov 08 14:44:33 2015 +0100
@@ -273,6 +273,7 @@
 
 
 class SOCKSv5(protocol.Protocol, FileSender):
+    CHUNK_SIZE = 4096
 
     def __init__(self, session_hash=None):
         """