File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ struct daemon_handlersocket_data {
4949static int
5050daemon_handlersocket_init (void *p)
5151{
52- DENA_VERBOSE (10 , fprintf (stderr, " handlersocket: initialized\n " ));
5352 config conf;
5453 conf[" use_epoll" ] = handlersocket_epoll ? " 1" : " 0" ;
5554 if (handlersocket_address) {
@@ -83,6 +82,10 @@ daemon_handlersocket_init(void *p)
8382 }
8483 ap->hssvr_rd = hstcpsvr_i::create (conf);
8584 ap->hssvr_rd ->start_listen ();
85+ listening = true ;
86+ } else {
87+ DENA_VERBOSE (10 , fprintf (stderr, " handlersocket: not listening "
88+ " for reads\n " ));
8689 }
8790 if (handlersocket_port_wr != 0 ) {
8891 if (handlersocket_threads_wr > 0 ) {
@@ -96,9 +99,13 @@ daemon_handlersocket_init(void *p)
9699 }
97100 ap->hssvr_wr = hstcpsvr_i::create (conf);
98101 ap->hssvr_wr ->start_listen ();
102+ } else {
103+ DENA_VERBOSE (10 , fprintf (stderr, " handlersocket: not listening "
104+ " for writes\n " ));
99105 }
100106 st_plugin_int *const plugin = static_cast <st_plugin_int *>(p);
101107 plugin->data = ap.release ();
108+ DENA_VERBOSE (10 , fprintf (stderr, " handlersocket: initialized\n " ));
102109 return 0 ;
103110}
104111
You can’t perform that action at this time.
0 commit comments