From e61ab27e5982329f0d48ece22dc59910656ac0d6 Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Wed, 9 Dec 2015 16:36:40 +0800 Subject: [PATCH] tls_simple bug fixed --- shadowsocks/obfsplugin/http_simple.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shadowsocks/obfsplugin/http_simple.py b/shadowsocks/obfsplugin/http_simple.py index 2a7a107..77946c4 100644 --- a/shadowsocks/obfsplugin/http_simple.py +++ b/shadowsocks/obfsplugin/http_simple.py @@ -194,6 +194,7 @@ class http2_simple(plain.plain): self.host = None self.port = 0 self.recv_buffer = b'' + self.send_buffer = b'' def client_encode(self, buf): if self.raw_trans_sent: @@ -276,6 +277,7 @@ class tls_simple(plain.plain): self.has_sent_header = False self.has_recv_header = False self.raw_trans_sent = False + self.send_buffer = b'' def client_encode(self, buf): if self.raw_trans_sent: