108 // TODO: free, see evt_request_finish |
108 // TODO: free, see evt_request_finish |
109 |
109 |
110 return NULL; |
110 return NULL; |
111 } |
111 } |
112 |
112 |
|
113 void basic_keep_alive(SessionHandler *handler, Connection *conn) { |
|
114 |
|
115 } |
|
116 |
|
117 |
113 /* ----- event session handler ----- */ |
118 /* ----- event session handler ----- */ |
114 |
119 |
115 SessionHandler* create_event_session_handler() { |
120 SessionHandler* create_event_session_handler() { |
116 EventSessionHandler *handler = malloc(sizeof(EventSessionHandler)); |
121 EventSessionHandler *handler = malloc(sizeof(EventSessionHandler)); |
117 handler->eventhandler = get_default_event_handler(); |
122 handler->eventhandler = get_default_event_handler(); |
118 handler->sh.enqueue_connection = evt_enq_conn; |
123 handler->sh.enqueue_connection = evt_enq_conn; |
|
124 handler->sh.keep_alive = evt_keep_alive; |
119 return (SessionHandler*)handler; |
125 return (SessionHandler*)handler; |
120 } |
126 } |
121 |
127 |
122 void evt_enq_conn(SessionHandler *handler, Connection *conn) { |
128 void evt_enq_conn(SessionHandler *handler, Connection *conn) { |
123 HTTPRequest *request = malloc(sizeof(HTTPRequest)); |
129 HTTPRequest *request = malloc(sizeof(HTTPRequest)); |