mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Use getsockname for logging TCP socket info.
When a user wants the kernel to choose a random port we need to display which port was chosen.
This commit is contained in:
parent
61b31994d1
commit
e63bd7b843
@ -38,7 +38,7 @@ class TCPSocket(BaseSocket):
|
||||
FAMILY = socket.AF_INET
|
||||
|
||||
def __str__(self):
|
||||
return "http://%s:%d" % self.address
|
||||
return "http://%s:%d" % self.sock.getsockname()
|
||||
|
||||
def set_options(self, sock, bound=False):
|
||||
if hasattr(socket, "TCP_CORK"):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user