Skip to content

tc_epoll_server 多个handle,只有一个在处理 #306

@sunhmk

Description

@sunhmk

添加一个额外的udp adapter;
netthread 个数为4
handle个数也为4
只有一个handle能处理数据,其他三个无效;
Thread 14 "uac" hit Breakpoint 10, tars::TC_EpollServer::Connection::getId (
this=0x7fffe80022f0)
at /data/tarscpp/Tars/tarscpp/util/include/util/tc_epoll_server.h:535
535 inline uint32_t getId() const { return _uid; }
(gdb) p _uid
$36 = 4232052737
(gdb) p _uid
$37 = 4232052737
(gdb) c
Continuing.
[Switching to Thread 0x7fffdffff700 (LWP 1508)]

Thread 16 "uac" hit Breakpoint 10, tars::TC_EpollServer::Connection::getId (
this=0x7fffd8001aa0)
at /data/tarscpp/Tars/tarscpp/util/include/util/tc_epoll_server.h:535
535 inline uint32_t getId() const { return _uid; }
(gdb) p _uid
$38 = 4240441345
(gdb) c
Continuing.
[Switching to Thread 0x7fffecff9700 (LWP 1507)]

Thread 15 "***" hit Breakpoint 10, tars::TC_EpollServer::Connection::getId (
this=0x7fffe4001aa0)
at ..../tarscpp/util/include/util/tc_epoll_server.h:535
535 inline uint32_t getId() const { return _uid; }
(gdb) p _uid
$39 = 4236247041
(gdb) c
Continuing.
[Switching to Thread 0x7fffdf7fe700 (LWP 1509)]

Thread 17 "***" hit Breakpoint 10, tars::TC_EpollServer::Connection::getId (
this=0x7fffd0001aa0)
at ..../tarscpp/util/include/util/tc_epoll_server.h:535
535 inline uint32_t getId() const { return _uid; }
(gdb) p _uid
$40 = 4244635649

(gdb) p 4232052737 % 4
$1 = 1
(gdb) p 4240441345 % 4
$2 = 1
(gdb) p 4236247041 % 4
$3 = 1
(gdb) p 4244635649 % 4
$4 = 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions