Skip to content

Commit b1aea49

Browse files
committed
fix: ensure send() method uses drain() to handle writes correctly
1 parent 4e98d68 commit b1aea49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

playwright/_impl/_transport.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,4 @@ def send(self, message: Dict) -> None:
176176
self._output.write(
177177
len(data).to_bytes(4, byteorder="little", signed=False) + data
178178
)
179+
await self._output.drain()

0 commit comments

Comments
 (0)