docs, backlog adjustment
Some checks failed
Test and Deploy / test (push) Failing after 9s
Test and Deploy / docs (push) Has been skipped

This commit is contained in:
2024-07-09 12:53:03 -07:00
parent 7a82072539
commit adc2c121d7
3 changed files with 111 additions and 1 deletions

View File

@ -84,6 +84,10 @@ void delete_server(Server *s) {
}
int serve(Server *s, int backlog_size) {
if (backlog_size == 0) {
backlog_size = DEFAULT_BACKLOG;
}
if (listen(s->fd, backlog_size) != 0) {
return 1;
}