Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

Commit

Permalink
fix delays in sending/receiving messages between pox and pyretic
Browse files Browse the repository at this point in the history
  • Loading branch information
ngsrinivas committed Mar 10, 2016
1 parent 737f63a commit 4e81651
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions of_client/pox_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ def __init__(self, host, port, of_client):
asynchat.async_chat.__init__(self)
self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
self.connect((host, port))
self.ac_in_buffer_size = 4096 * 3
self.ac_out_buffer_size = 4096 * 3
# If there are delays in receiving messages from the other side, and
# they are because of large message sizes, increase this buffer size.
self.ac_in_buffer_size = 4096 * 5
self.ac_out_buffer_size = 4096 * 5
self.set_terminator(TERM_CHAR)
self.start_time = 0
self.interval = 0
Expand Down
6 changes: 4 additions & 2 deletions pyretic/backend/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ def __init__(self, backend, sock):
self.backend = backend
self.received_data = []
asynchat.async_chat.__init__(self, sock)
self.ac_in_buffer_size = 4096 * 3
self.ac_out_buffer_size = 4096 * 3
# If there are delays in receiving messages from the other side, and
# they are because of large message sizes, increase this buffer size.
self.ac_in_buffer_size = 4096 * 5
self.ac_out_buffer_size = 4096 * 5
self.set_terminator(TERM_CHAR)
return

Expand Down

0 comments on commit 4e81651

Please sign in to comment.