Skip to content

Commit cd78dcf

Browse files
Internally make use of the TCP_NODELAY socket option to remove delays
in socket reads for some platforms.
1 parent 673df27 commit cd78dcf

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

doc/src/release_notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Thin Mode Changes
2323
#) When using the connection parameter `https_proxy` while using protocol
2424
`tcp`, a more meaningful exception is now raised:
2525
`DPY-2029: https_proxy requires use of the tcps protocol`.
26+
#) Internally make use of the `TCP_NODELAY` socket option to remove delays
27+
in socket reads.
2628

2729
Thick Mode Changes
2830
++++++++++++++++++

src/oracledb/impl/thin/connection.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ cdef class ThinConnImpl(BaseConnImpl):
224224
6)
225225
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPCNT,
226226
10)
227+
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
227228
sock.settimeout(None)
228229
if address.protocol == "tcps":
229230
sock = get_ssl_socket(sock, params, description, address)

0 commit comments

Comments
 (0)