MXS-2196: Remove DCB from Listener

Replaced the DCB with a single file descriptor that the listener listens
on and which is added to all of the workers. The Listener also extends the
MXB_POLL_DATA which allows it to handle epoll events.

Moved the code that creates the listening socket into listener.cc where it
belongs and did a minor cleanup of it.
This commit is contained in:
Markus Mäkelä
2018-12-01 20:59:44 +02:00
parent 3791fdded7
commit b3fbc6aa3d
5 changed files with 215 additions and 246 deletions

View File

@ -323,7 +323,7 @@ bool service_isvalid(Service* service)
static int serviceStartPort(Service* service, const SListener& port)
{
mxb_assert(service && service->router && service->router_instance);
return port->listen(port);
return port->listen();
}
/**