Revision 1e3d1c7d vncauthproxy/proxy.py

b/vncauthproxy/proxy.py
26 26
DEFAULT_CONNECT_TIMEOUT = 30
27 27
DEFAULT_CONNECT_RETRIES = 3
28 28
DEFAULT_RETRY_WAIT = 0.1
29
# Default values per http://www.iana.org/assignments/port-numbers
30
DEFAULT_MIN_PORT = 49152
31
DEFAULT_MAX_PORT = 65535
29
# We must take care not to fall into the ephemeral port range,
30
# this can lead to transient failures to bind a chosen port.
31
#
32
# By default, Linux uses 32768 to 61000, see:
33
# http://www.ncftp.com/ncftpd/doc/misc/ephemeral_ports.html#Linux
34
# so 25000-30000 seems to be a sensible default.
35
DEFAULT_MIN_PORT = 25000
36
DEFAULT_MAX_PORT = 30000
32 37

  
33 38
import os
34 39
import sys

Also available in: Unified diff