mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-09-22 04:15:54 -04:00
Update: Improved connecting-the-dots regarding clients and object IDs
This commit is contained in:
parent
3761582ab8
commit
1b94dea420
@ -104,6 +104,12 @@ int client_create(client_t **c_ptr, connection_t *con, http_parser_t *parser)
|
|||||||
client->write_to_client = format_generic_write_to_client;
|
client->write_to_client = format_generic_write_to_client;
|
||||||
*c_ptr = client;
|
*c_ptr = client;
|
||||||
|
|
||||||
|
ICECAST_LOG_DEBUG("Client %p created on connection %p (connection ID: %llu, socket real: %p \"%H\", socket effective: %p \"%H\")",
|
||||||
|
client, con, (long long unsigned int)con->id,
|
||||||
|
con->listensocket_real, con->listensocket_real ? listensocket_get_listener(con->listensocket_real)->id : NULL,
|
||||||
|
con->listensocket_effective, con->listensocket_effective ? listensocket_get_listener(con->listensocket_effective)->id : NULL
|
||||||
|
);
|
||||||
|
|
||||||
fastevent_emit(FASTEVENT_TYPE_CLIENT_CREATE, FASTEVENT_FLAG_MODIFICATION_ALLOWED, FASTEVENT_DATATYPE_CLIENT, client);
|
fastevent_emit(FASTEVENT_TYPE_CLIENT_CREATE, FASTEVENT_FLAG_MODIFICATION_ALLOWED, FASTEVENT_DATATYPE_CLIENT, client);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -726,7 +726,7 @@ connection_t * listensocket_accept(listensocket_t *self, listensock
|
|||||||
memmove(ip, ip+7, strlen(ip+7)+1);
|
memmove(ip, ip+7, strlen(ip+7)+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
ICECAST_LOG_DEBUG("Client on socket \"%H\".", self->listener->id);
|
ICECAST_LOG_DEBUG("Client on socket %p \"%H\".", self, self->listener->id);
|
||||||
|
|
||||||
if (self->listener->on_behalf_of) {
|
if (self->listener->on_behalf_of) {
|
||||||
ICECAST_LOG_DEBUG("This socket is acting on behalf of \"%H\"", self->listener->on_behalf_of);
|
ICECAST_LOG_DEBUG("This socket is acting on behalf of \"%H\"", self->listener->on_behalf_of);
|
||||||
|
Loading…
Reference in New Issue
Block a user