MCPcopy Create free account
hub / github.com/acl-dev/acl / service_on_close

Method service_on_close

lib_acl_cpp/src/master/master_threads.cpp:342–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342void master_threads::service_on_close(void* ctx, ACL_VSTREAM* client)
343{
344 master_threads* mt = (master_threads *) ctx;
345 acl_assert(mt != NULL);
346
347 socket_stream* stream = (socket_stream*) client->context;
348 if (stream == NULL) {
349 logger_fatal("client->context is null!");
350 }
351
352 // �������ຯ���Խ�Ҫ�رյ��������ƺ���
353 mt->thread_on_close(stream);
354
355 // �������������İ󶨹�ϵ���������Է�ֹ��ɾ��������ʱ
356 // �����ر�������������Ϊ����������Ҫ�ڱ��������غ���
357 // ����Զ��ر�
358 (void) stream->unbind();
359 delete stream;
360}
361
362int master_threads::service_on_sighup(void* ctx, ACL_VSTRING* buf)
363{

Callers

nothing calls this directly

Calls 2

thread_on_closeMethod · 0.45
unbindMethod · 0.45

Tested by

no test coverage detected