Skip to content

Commit

Permalink
fix keep-alive issue
Browse files Browse the repository at this point in the history
  • Loading branch information
akihikokuroda committed Feb 29, 2024
1 parent e1e238a commit fea791c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gateway/proxy/proxy/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ def process_from_backend(client, connection):
# print(alldata)
if "Content-Encoding" in msg and msg["Content-Encoding"] == "gzip":
print(gzip.decompress(alldata.split(b'\r\n\r\n',2)[1].split(b'\r\n',2)[1]))
if not "Connection" in msg or not msg["Connection"] == "keep-active":
if not "Connection" in msg or not msg["Connection"] == "keep-alive":
break
in_header = True
alldata = b''
print("receive from backend completed")

def process_from_program(connection, client):
Expand Down

0 comments on commit fea791c

Please sign in to comment.