Skip to content

Commit

Permalink
5.8.6 fix seley ip_manager bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-X-Net committed Oct 29, 2023
1 parent 2c0965a commit d4cdee2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions code/default/lib/noarch/front_base/http1.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def request_task(self, task):

task.set_state("h1_req_sended")
except Exception as e:
self.logger.exception("%s h1_request send:%r inactive_time:%d task.timeout:%d",
self.logger.warn("%s h1_request send:%r inactive_time:%d task.timeout:%d",
self.ip_str, e, time.time() - self.last_recv_time, task.timeout)
self.logger.warn('%s trace:%s', self.ip_str, self.get_trace())

Expand All @@ -176,7 +176,7 @@ def request_task(self, task):
response.begin(timeout=timeout)
task.set_state("response_begin")
except Exception as e:
self.logger.exception("%s h1_request recv:%r inactive_time:%d task.timeout:%d",
self.logger.warn("%s h1_request recv:%r inactive_time:%d task.timeout:%d",
self.ip_str, e, time.time() - self.last_recv_time, task.timeout)
self.logger.warn('%s trace:%s', self.ip_str, self.get_trace())

Expand Down
2 changes: 1 addition & 1 deletion code/default/lib/noarch/front_base/http_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def __init__(self, logger, ip_manager, config, ssl_sock, close_cb, retry_task_cb
self.ssl_sock = ssl_sock
self.handshake = ssl_sock.handshake_time * 0.001
self.rtt = ssl_sock.handshake_time * 0.001
self.streams = []
self.streams = {}
self.ip_str = ssl_sock.ip_str
self.close_cb = close_cb
self.retry_task_cb = retry_task_cb
Expand Down
2 changes: 1 addition & 1 deletion code/default/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.8.5
5.8.6
5 changes: 3 additions & 2 deletions code/default/x_tunnel/local/seley_front/ip_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ def __str__(self):
return o

def set_hosts(self, hosts):
self.hosts = hosts
try:
with open(self.config_fn, "w") as fd:
json.dump(self.hosts, fd, indent=2)
json.dump(hosts, fd, indent=2)

self.load()
except Exception as e:
xlog.error("save hosts %s e:%r", self.config_fn, e)

Expand Down

0 comments on commit d4cdee2

Please sign in to comment.