diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-03-05 20:51:41 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-03-07 04:38:34 -0500 |
commit | 5c2f5577b434029602d8f962b56eb9c50d43791e (patch) | |
tree | 465215bc51b2b36d81037158049b8478c15750e7 /src/base.h | |
parent | c95f832f99d18d3a4208fb2bb8a3202fb9b74e7a (diff) | |
download | lighttpd-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |