Minor formatting fix

master
Nick Krichevsky 2018-09-09 19:46:47 -04:00
parent 0a7300402e
commit 28700e2e63
2 changed files with 3 additions and 2 deletions

View File

@ -64,7 +64,8 @@ struct server_info setup(int port) {
return info;
}
int listen_result = listen(info.sock_fd, 8); if (listen_result == -1) {
int listen_result = listen(info.sock_fd, BACKLOG_SIZE);
if (listen_result == -1) {
close(info.sock_fd);
info.sock_fd = -1;
info.status = STATUS_ERROR;

View File

@ -3,7 +3,7 @@
#include "../common/socket_helper.h"
#define BACKLOG_SIZE 8;
#define BACKLOG_SIZE 8
#define HTTP_VERSION "HTTP/1.1"
#define FILE_BUFFER_SIZE 1024