mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2025-12-24 18:10:07 +01:00
test: ignore a ConnectionResetError during our dispatch
If our server disconnects us with data still in the pipe we never picked up on that data causing heisenbugs depending on whether we read things (esp. the "disconnected" event) fast enough or not. Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/317>
This commit is contained in:
parent
7619bfa9ad
commit
96f20ae333
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ class Ei:
|
|||
while data:
|
||||
self._data += data
|
||||
data = self.sock.recv(1024)
|
||||
except BlockingIOError:
|
||||
except (BlockingIOError, ConnectionResetError):
|
||||
pass
|
||||
return self.data
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue