File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -750,8 +750,10 @@ WSPSelect(INT nfds,
750
750
/* Fill out handle info */
751
751
HandleArray -> Handle = (SOCKET )readfds -> fd_array [i ];
752
752
HandleArray -> Events = AFD_EVENT_RECEIVE |
753
- AFD_EVENT_DISCONNECT |
754
- AFD_EVENT_ABORT ;
753
+ AFD_EVENT_DISCONNECT |
754
+ AFD_EVENT_CLOSE |
755
+ AFD_EVENT_ABORT |
756
+ AFD_EVENT_ACCEPT ;
755
757
756
758
/* Move to the next one */
757
759
HandleArray ++ ;
@@ -760,7 +762,7 @@ WSPSelect(INT nfds,
760
762
{
761
763
/* Fill out handle info */
762
764
HandleArray -> Handle = (SOCKET )writefds -> fd_array [i ];
763
- HandleArray -> Events = AFD_EVENT_SEND ;
765
+ HandleArray -> Events = AFD_EVENT_SEND | AFD_EVENT_CONNECT ;
764
766
765
767
/* Move to the next one */
766
768
HandleArray ++ ;
@@ -776,7 +778,7 @@ WSPSelect(INT nfds,
776
778
}
777
779
778
780
/* Check if a timeout was given */
779
- if (timeout )
781
+ if (! timeout )
780
782
{
781
783
/* Inifinte Timeout */
782
784
PollInfo -> Timeout .u .LowPart = -1 ;
You can’t perform that action at this time.
0 commit comments