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

@ -1022,7 +1022,7 @@ bool runtime_create_listener(Service* service,
MXS_NOTICE("Created %slistener '%s' at %s:%s for service '%s'",
ssl ? "TLS encrypted " : "", name, print_addr, port, service->name);
if (listener->listen(listener))
if (listener->listen())
{
rval = true;
}