|
@ -480,10 +480,6 @@ class TCPRelayHandler(object): |
|
|
remote_sock_v6 = socket.socket(af, socktype, proto) |
|
|
remote_sock_v6 = socket.socket(af, socktype, proto) |
|
|
self._remote_sock_v6 = remote_sock_v6 |
|
|
self._remote_sock_v6 = remote_sock_v6 |
|
|
self._fd_to_handlers[remote_sock_v6.fileno()] = self |
|
|
self._fd_to_handlers[remote_sock_v6.fileno()] = self |
|
|
remote_sock.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, 1024 * 32) |
|
|
|
|
|
remote_sock.setsockopt(socket.SOL_SOCKET, socket.SO_SNDBUF, 1024 * 32) |
|
|
|
|
|
remote_sock_v6.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, 1024 * 32) |
|
|
|
|
|
remote_sock_v6.setsockopt(socket.SOL_SOCKET, socket.SO_SNDBUF, 1024 * 32) |
|
|
|
|
|
|
|
|
|
|
|
remote_sock.setblocking(False) |
|
|
remote_sock.setblocking(False) |
|
|
if self._remote_udp: |
|
|
if self._remote_udp: |
|
|