Minor formatting fix
parent
0a7300402e
commit
28700e2e63
|
@ -64,7 +64,8 @@ struct server_info setup(int port) {
|
||||||
return info;
|
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);
|
close(info.sock_fd);
|
||||||
info.sock_fd = -1;
|
info.sock_fd = -1;
|
||||||
info.status = STATUS_ERROR;
|
info.status = STATUS_ERROR;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include "../common/socket_helper.h"
|
#include "../common/socket_helper.h"
|
||||||
|
|
||||||
#define BACKLOG_SIZE 8;
|
#define BACKLOG_SIZE 8
|
||||||
#define HTTP_VERSION "HTTP/1.1"
|
#define HTTP_VERSION "HTTP/1.1"
|
||||||
#define FILE_BUFFER_SIZE 1024
|
#define FILE_BUFFER_SIZE 1024
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue