Convert to libevent.
This is a quick initial conversion that doesn't yet show much advantage: - We roll our own timeouts. - We roll our own signal handling. - We build up the meta connection fd events on each loop rather than on state changes.
This commit is contained in:
parent
834290b00f
commit
38c25d62c2
9 changed files with 129 additions and 110 deletions
|
|
@ -462,6 +462,11 @@ int main(int argc, char **argv)
|
|||
if(!read_server_config())
|
||||
return 1;
|
||||
|
||||
if(event_init() < 0) {
|
||||
logger(LOG_ERR, _("Error initializing libevent!"));
|
||||
return 1;
|
||||
}
|
||||
|
||||
if(lzo_init() != LZO_E_OK) {
|
||||
logger(LOG_ERR, _("Error initializing LZO compressor!"));
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue