Skip to content

Commit 4f7c595

Browse files
committed
BSD sockets: Correctly propagate write events
fixes connect()
1 parent a07c9be commit 4f7c595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/port/posix/bsd_socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ static int wolfip_fd_is_nonblock(int public_fd)
387387
__entry->events = (wait_events); \
388388
wolfIP_register_callback(IPSTACK, __entry->internal_fd, poller_callback, IPSTACK); \
389389
__pfd.fd = __entry->public_fd; \
390-
__pfd.events = __entry->events; \
390+
__pfd.events = POLLIN; \
391391
__pfd.revents = 0; \
392392
pthread_mutex_unlock(&wolfIP_mutex); \
393393
host_poll(&__pfd, 1, -1); \

0 commit comments

Comments
 (0)