Skip to content

Commit

Permalink
0.0.26
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaeno committed May 25, 2022
1 parent 02ef9c2 commit 95d6491
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PandaPkgInfo.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
release_version = "0.0.26"
release_version = "0.0.27"
3 changes: 3 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Includes all libraries used by both server and monitor (and others).
Release Note
------------

* 0.0.27 (26/5/2022)
* PANDA_BEHIND_REAL_LB

* 0.0.26 (25/5/2022)
* for containerization

Expand Down
4 changes: 4 additions & 0 deletions pandacommon/pandautils/net_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import copy
import random
import socket
Expand Down Expand Up @@ -62,6 +63,9 @@ def get_connection(self, url, proxies=None):
# utility function to get HTTPAdapterWithRandomDnsResolver
def get_http_adapter_with_random_dns_resolution():
session = requests.Session()
# no randomization if panda is behind real load balancer than DNS LB
if 'PANDA_BEHIND_REAL_LB' in os.environ:
return session
adapter = HTTPAdapterWithRandomDnsResolver(max_retries=0)
session.mount('http://', adapter)
session.mount('https://', adapter)
Expand Down

0 comments on commit 95d6491

Please sign in to comment.