You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a race condition between accept a connection and thread routine's assigning new connection fd to sock, if next accept comes before current connection thread's sock assignment, int sock = ((struct cli_args*)arg)->fd, then two connection thread will refer to same socket file description, its dangerous.
The text was updated successfully, but these errors were encountered:
There is a race condition between accept a connection and thread routine's assigning new connection fd to sock, if next accept comes before current connection thread's sock assignment,
int sock = ((struct cli_args*)arg)->fd
, then two connection thread will refer to same socket file description, its dangerous.The text was updated successfully, but these errors were encountered: