sustrik / dsock

An obsolete project
Other
82 stars 23 forks source link

Closing original socket after accept() fails #20

Closed vlm closed 8 years ago

vlm commented 8 years ago

I am not sure it is the right behavior. Should be closing the socket that we've just accepted, as in tcp_close(as).

https://github.com/sustrik/dsock/blob/master/tcp.c#L189

sustrik commented 8 years ago

Correct. It should be as.

sustrik commented 8 years ago

Fixed.