Permalink
Browse files

set socket option TCP_NODELAY

  • Loading branch information...
1 parent 65229ce commit c79dd069a0ec22b4cbcccadb2c2aa8307f2d4553 @nakagami committed May 7, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 firebirdsql/fbcore.py
@@ -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):

0 comments on commit c79dd06

Please sign in to comment.