ivanzz1001

Results 3 issues of ivanzz1001

看到tcp接收数据的模块。首先新的TCP连接进来,TcpAccepter会接受该连接,然后调用TcpAcceptor :: AddEvent()函数将其加入到一个负载最低的EventLoop中,在EventLoop :: AddEvent()将该文件句柄加入到m_oFDQueue之后,是否需要调用EventLoop :: JumpoutEpollWait()函数以通知EventLoop尽快将队列中的fd加入到epoll中,否则需要等到下一次超时后才能处理。 因此将EventLoop::AddEvent()改为如下是否较为合适: void EventLoop :: AddEvent(int iFD, SocketAddress oAddr) { std::lock_guard oLockGuard(m_oMutex); m_oFDQueue.push(make_pair(iFD, oAddr)); //新添加行 JumpoutEpollWait(); }

编译phxecho时,出现如下情况: logging.cc:(.text+0x65de): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, bool*, bool*)' logging.cc:(.text+0x6688): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, bool*, bool*)' logging.cc:(.text+0x672a): undefined reference to `google::FlagRegisterer::FlagRegisterer(char...

compile error

I build brpc(https://github.com/apache/brpc) and meet the following when It link protobuf: ``` /root/cpp_proj/brpc-compile/protobuf/src/google/protobuf/generated_message_tctable_lite.cc:1419: undefined reference to `utf8_range::IsStructurallyValid(std::basic_string_view)' /usr/bin/ld: /root/cpp_proj/brpc-compile/protobuf/output-inst/lib/libprotobuf.a(generated_message_tctable_lite.cc.o): in function `google::protobuf::internal::TcParser::FastUS2(google::protobuf::MessageLite*, char const*, google::protobuf::internal::ParseContext*, google::protobuf::internal::TcFieldData, google::protobuf::internal::TcParseTableBase const*, unsigned long)':...

wait for user action
inactive