File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 93
93
// TODO: windows complete writes, flush-after-mute (pending writes logic from Pony)
94
94
// | IO.Action.Write |
95
95
// ...
96
+
97
+ | IO.Action.NotHandled |
98
+ // If the underlying engine didn't want to handle this event, it means
99
+ // this is likely a later connection attempt after we already had one.
100
+ // If we have more connection attempts pending, we'll unsubscribe it.
101
+ if (@_pending_connect_count > 0) (
102
+ @_pending_connect_count -= 1
103
+ _FFI.pony_asio_event_unsubscribe(event.id)
104
+ |
105
+ // If we have no more pending connection attempts, pass the buck to
106
+ // the caller to figure out what needs to be done with this event.
107
+ // Maybe they have another engine sharing the same IO actor, perhaps.
108
+ yield action
109
+ )
96
110
|
97
111
yield action
98
112
)
You can’t perform that action at this time.
0 commit comments