Hacker News new | ask | show | jobs
by gpderetta 596 days ago
> Worth noting that linux (presumably as an optimisation) accepts connections before you call accept anyway so maybe this entire point is moot and we just have to live with this weird behaviour.

listen(2) takes a backlog parameter that is the number of queued (which I think it means ack'd) but not yet popped (i.e. listen'd) connections.

1 comments

And if you pass 0 it pre-acks one connection before you accept (which is what I was referring to).