Skip to content

Commit

Permalink
Merge pull request kytos#656 from renanrodrigo/change_timeout
Browse files Browse the repository at this point in the history
Increase timeouts to avoid disconnections
  • Loading branch information
diraol authored Nov 13, 2017
2 parents 0f19303 + f6088c9 commit 111b377
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kytos/core/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"""
# Min time (seconds) to send a new EchoRequest to a switch
POOLING_TIME = 3
CONNECTION_TIMEOUT = 15
CONNECTION_TIMEOUT = 70
#: FLOOD_TIMEOUT in microseconds
FLOOD_TIMEOUT = 100000
2 changes: 1 addition & 1 deletion kytos/core/tcp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def setup(self):
protocol_name = f'{server_port:04d}'
self.connection.protocol.name = protocol_name

self.request.settimeout(30)
self.request.settimeout(70)
self.exception = None

event_name = \
Expand Down

0 comments on commit 111b377

Please sign in to comment.