uNetworking / uSockets

Miniscule cross-platform eventing, networking & crypto for async applications
Apache License 2.0
1.29k stars 268 forks source link

sizeof(us_socket) includes us_poll so don't allocate room for us_poll #42

Closed ghost closed 1 year ago

ghost commented 4 years ago

This is still not fixed everywhere:

us_create_poll in loop.c does subtract the size of us_poll from the us_socket, but in context.c it does not (so listen sockets and connect sockets are sizeof us_poll too big (a few bytes)