Commit 58a062a6 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Pack struct sess slightly smarter, and get its allocation size

(incl memitem) down to 512 bytes, despite ridiculously large
sockaddr_storage structs.
parent c632af8a
......@@ -630,6 +630,10 @@ struct sess {
unsigned magic;
#define SESS_MAGIC 0x2c2f9c5a
enum step step;
int fd;
unsigned vsl_id;
/* Cross references ------------------------------------------*/
struct sesspool *sesspool;
......@@ -640,9 +644,6 @@ struct sess {
/* Session related fields ------------------------------------*/
int fd;
unsigned vsl_id;
socklen_t sockaddrlen;
socklen_t mysockaddrlen;
struct sockaddr_storage sockaddr;
......@@ -658,18 +659,11 @@ struct sess {
/* Timestamps, all on TIM_real() timescale */
double t_open; /* fd accepted */
double t_idle; /* fd accepted or resp sent */
double t_req;
#if defined(HAVE_EPOLL_CTL)
struct epoll_event ev;
#endif
enum step step;
/* Request related fields ------------------------------------*/
/* Timestamps, all on TIM_real() timescale */
double t_req;
};
/* Prototypes etc ----------------------------------------------------*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment