Repository navigation
Sometimes notify_closing can be called on dead events - #3503
Conversation
8e2fc98 to
d887165
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3503 +/- ##
===============================================
Coverage 100.00000% 100.00000%
===============================================
Files 128 128
Lines 19452 19490 +38
Branches 1321 1325 +4
===============================================
+ Hits 19452 19490 +38
🚀 New features to boost your workflow:
|
d887165 to
b97da89
Compare
5387ebb to
7169163
Compare
|
I'll close this in favor of the more general solution @arthur-tacca was proposing. |
|
Gah, I forgot what this PR did. NVM! |
CoolCat467
left a comment
There was a problem hiding this comment.
From what I understand this is probably fine.
|
Sorry I just noticed that this only checks for except OSError as e:
if e.errno == errno.ENOENT: # pragma: no branch
# the event isn't in kqueue
continueBut for similar code in |
|
Ah possible. I just took that errno from the relevant man page on macOS... |
|
Ok sorry, the error code thing is not a big deal in this case. The bug that this pull request fixes is that a host callback (in guest mode) closes a socket after Assuming the socket close is done with the normal ordering of The trio docs says that's the recommended way for a close implementation to work, but does say it's also valid to do the actual close first and then |
Closes #3502 since this is the repro they were describing, I think.