summaryrefslogtreecommitdiff
path: root/src/base.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-03-05 20:51:41 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2021-03-07 04:38:34 -0500
commit5c2f5577b434029602d8f962b56eb9c50d43791e (patch)
tree465215bc51b2b36d81037158049b8478c15750e7 /src/base.h
parentc95f832f99d18d3a4208fb2bb8a3202fb9b74e7a (diff)
downloadlighttpd-git-5c2f5577b434029602d8f962b56eb9c50d43791e.tar.gz
[core] save parsed listen addrs at startup
save parsed listen addrs at startup for reuse at runtime srv_socket->srv_token is normalized at startup and contains IP and port. save offset to colon, if present, or else length of string (unix socket) At runtime, srv_token_colon can be quickly used as length of IP string (without port) or, if not length of string, offset of stringified port following the colon.
Diffstat (limited to 'src/base.h')
-rw-r--r--src/base.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/base.h b/src/base.h
index 3ae04751..652cf2ef 100644
--- a/src/base.h
+++ b/src/base.h
@@ -131,7 +131,8 @@ typedef struct server_socket {
sock_addr addr;
int fd;
- unsigned short is_ssl;
+ uint8_t is_ssl;
+ uint8_t srv_token_colon;
unsigned short sidx;
fdnode *fdn;