Enable -O2 optimization, remove -g

Clean up gitignore
Fix typos
pull/48/head
Soner Tari 5 years ago
parent 1c8a837df1
commit f6a8522d1e

4
.gitignore vendored

@ -22,11 +22,7 @@
/extra/pki/server.key
/extra/pki/targets/*
/docs/
/iso/
/nbproject/
/src/files.txt
/tmp/
# CVS default ignores begin
tags

@ -432,8 +432,7 @@ endif
# _FORTIFY_SOURCE requires -O on Linux
ifeq (,$(findstring -O,$(CFLAGS)))
#CFLAGS+= -O2
CFLAGS+= -g
CFLAGS+= -O2
endif
export VERSION

@ -1030,7 +1030,7 @@ getdtablecount()
* then they all start creating children, which crashes us again.
* So, no matter how large an FD_RESERVE we choose, there will always be a risk of running out of fds, if we check the number of fds during parent conn setup only.
* If we are left with less than FD_RESERVE fds, we should not create more children than FD_RESERVE allows for either.
* Therefore, we check if we are out of fds in proxy_listener_acceptcb_child() and close the conn there too.
* Therefore, we check if we are out of fds in pxy_listener_acceptcb_child() and close the conn there too.
* @attention These checks are expected to slow us further down, but it is critical to avoid a crash in case we run out of fds.
*/
static int

Loading…
Cancel
Save