|
|
@ -19,11 +19,13 @@ struct module {
|
|
|
|
int socket_descriptor;
|
|
|
|
int socket_descriptor;
|
|
|
|
int port;
|
|
|
|
int port;
|
|
|
|
|
|
|
|
|
|
|
|
/* unfortunately, using UV for accepting connections is not great!
|
|
|
|
/*
|
|
|
|
on_connection, to create a new accepted connection, will have to
|
|
|
|
* unfortunately, using UV for accepting connections is not great!
|
|
|
|
init a tcp handle, which requires a uvloop. cannot use main as
|
|
|
|
* on_connection, to create a new accepted connection, will have to init a tcp handle,
|
|
|
|
rest of the connection is handled in sandboxing threads, with per-core(per-thread) tls data-structures.
|
|
|
|
* which requires a uvloop. cannot use main as rest of the connection is handled in
|
|
|
|
so, using direct epoll for accepting connections. */
|
|
|
|
* sandboxing threads, with per-core(per-thread) tls data-structures.
|
|
|
|
|
|
|
|
* so, using direct epoll for accepting connections.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: Should this be removed?
|
|
|
|
// TODO: Should this be removed?
|
|
|
|
// uv_handle_t srvuv;
|
|
|
|
// uv_handle_t srvuv;
|
|
|
|