Skip to content

Commit 7f415da

Browse files
committed
More understandable comment about why we need to use select on windows
1 parent 8aea1ca commit 7f415da

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎src/windows/write.c‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,8 @@ evfilt_write_knote_create(struct filter *filt, struct knote *kn)
267267
}
268268

269269
/*
270-
* Level-triggered fire-on-enable: every EV_ADD / EV_ENABLE
271-
* delivers one event if the socket is currently writable,
272-
* regardless of whether a transition just happened. The
273-
* select() probe gives the level signal; the prior Reset +
274-
* WSAEnumNetworkEvents suppresses the auto-reset event so we
275-
* don't double-fire alongside this synth.
270+
* WSAEventSelect only returns edges, it doesn't fire continuously,
271+
* so we need to determine the current write status of the event.
276272
*/
277273
{
278274
fd_set wfds;

0 commit comments

Comments
 (0)