Skip to content

Commit

Permalink
set socket option TCP_NODELAY
Browse files Browse the repository at this point in the history
  • Loading branch information
nakagami committed May 7, 2011
1 parent 65229ce commit c79dd06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions firebirdsql/fbcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,7 @@ def __init__(self, dsn=None, user=None, password=None, host=None,
self.isolation_level = ISOLATION_LEVEL_READ_COMMITED

self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
self.sock.connect((self.hostname, self.port))

def set_isolation_level(self, isolation_level):
Expand Down

0 comments on commit c79dd06

Please sign in to comment.