Skip to content

Commit 3badba6

Browse files
authored
Fix async driver waiting for OS on closing half-open socket (#1315)
This change aligns the async driver better with the sync driver. When a socket is closed, we don't want to wait until the OS acknowledges that the channel has been fully torn down. It's sufficient to initiate the closure. The rest we'll leave to the OS's TCP stack (and potentially other intermediates such as TLS wrappers) or the async runtime to figure out in the background.
1 parent 513dc57 commit 3badba6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/neo4j/_async_compat/network/_bolt_socket.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ async def sendall(self, data):
192192

193193
async def close(self):
194194
self._writer.close()
195-
await self._writer.wait_closed()
196195

197196
def kill(self):
198197
self._writer.close()

0 commit comments

Comments
 (0)