Changed buffer mode for stdout
This commit is contained in:
@ -453,8 +453,6 @@ int client_request_handler(sock *client, unsigned long client_num, unsigned int
|
|||||||
sock_close(&rev_proxy);
|
sock_close(&rev_proxy);
|
||||||
}
|
}
|
||||||
|
|
||||||
fflush(stdout);
|
|
||||||
|
|
||||||
clock_gettime(CLOCK_MONOTONIC, &end);
|
clock_gettime(CLOCK_MONOTONIC, &end);
|
||||||
micros = (end.tv_nsec - begin.tv_nsec) / 1000 + (end.tv_sec - begin.tv_sec) * 1000000;
|
micros = (end.tv_nsec - begin.tv_nsec) / 1000 + (end.tv_sec - begin.tv_sec) * 1000000;
|
||||||
print("Transfer complete: %s", format_duration(micros, buf0));
|
print("Transfer complete: %s", format_duration(micros, buf0));
|
||||||
|
@ -156,10 +156,10 @@ int main(int argc, const char *argv[]) {
|
|||||||
{.sin6_family = AF_INET6, .sin6_addr = IN6ADDR_ANY_INIT, .sin6_port = htons(443)}
|
{.sin6_family = AF_INET6, .sin6_addr = IN6ADDR_ANY_INIT, .sin6_port = htons(443)}
|
||||||
};
|
};
|
||||||
|
|
||||||
/*if (setvbuf(stdout, NULL, _IONBF, 0) != 0) {
|
if (setvbuf(stdout, NULL, _IOLBF, 0) != 0) {
|
||||||
fprintf(stderr, ERR_STR "Unable to set stdout to unbuffered mode: %s" CLR_STR, strerror(errno));
|
fprintf(stderr, ERR_STR "Unable to set stdout to line-buffered mode: %s" CLR_STR, strerror(errno));
|
||||||
return 1;
|
return 1;
|
||||||
}*/
|
}
|
||||||
printf("Necronda Web Server\n");
|
printf("Necronda Web Server\n");
|
||||||
|
|
||||||
ret = config_init();
|
ret = config_init();
|
||||||
|
Reference in New Issue
Block a user