Browse Source

memory leak

master
mengskysama 4 years ago
parent
commit
b059b9ad85
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      shadowsocks/udprelay.py

+ 1
- 0
shadowsocks/udprelay.py View File

@@ -1293,6 +1293,7 @@ class UDPRelay(object):
logging.info('closed UDP port %d', self._listen_port)
before_sweep_size = len(self._sockets)
self._cache.sweep()
self._dns_cache.sweep()
if before_sweep_size != len(self._sockets):
logging.debug('UDP port %5d sockets %d' % (self._listen_port, len(self._sockets)))
self._client_fd_to_server_addr.sweep()

Loading…
Cancel
Save