Skip to content

Commit

Permalink
Merge pull request #35 from lhofhansl/nagles
Browse files Browse the repository at this point in the history
Disable Nagle's
  • Loading branch information
jwills authored Sep 16, 2024
2 parents 79ad611 + 3e48226 commit 4df2023
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buenavista/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import logging
import os
import random
import socket
import socketserver
import struct
from typing import Dict, List, Optional
Expand Down Expand Up @@ -265,6 +266,8 @@ def sync(self):

class BuenaVistaHandler(socketserver.StreamRequestHandler):
def handle(self):
# disable Nangle's
self.request.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, True)
self.r = BVBuffer(self.rfile)
ctx = None
try:
Expand Down

0 comments on commit 4df2023

Please sign in to comment.