muduo icon indicating copy to clipboard operation
muduo copied to clipboard

Event-driven network library for multi-threaded Linux server in C++11

Results 77 muduo issues
Sort by recently updated
recently updated
newest added

ubuntu 16.04 使用的是muduo c++11版 目的在没有接收到信息超过2分钟后,会调用forceClose强制断开连接,然后收到注册的连接回调函数的断联消息后,就会崩溃,初步分析只有在发命令的时候偶尔会发生这种情况,在没有发命令的时候,没有出现过,现在我的处理是:在准备关闭连接之前提早将连接标志位置false,使得不会在发送命令,过几秒后,再调用forceClose函数。 崩溃函数: void EPollPoller::updateChannel(Channel* channel) { Poller::assertInLoopThread(); const int index = channel->index(); if (index == kNew || index == kDeleted) { // a new one, add...

Why not use **getaddrinfo** instead of **gethostbyname_r ?**

### Discussed in https://github.com/chenshuo/muduo/discussions/626 Originally posted by **HelloWorld-9527** July 28, 2022 看了muduo日志相关的,想请教一下,日志类中的cookieStart、cookieEnd,作用是什么呢,具体是怎么用的呢? 可否举个具体的例子呢? 感谢

## Linux distro and version? x86 or ARM? 32-bit or 64-bit? x86 64-bit ## Branch (cpp98/cpp11/cpp17) and version of muduo? v1.1.0 我们在使用muduo时出现coredump的情况,排查以后发现是出现在TcpClient.cc的91行,如下图: ![image](https://user-images.githubusercontent.com/4918159/95840548-da9daa80-0d76-11eb-8f22-326ace0be20a.png) 这里有一个FIXME没有看明白是什么意思,所以想了解一下这个FIXME具体意义以及是否能修复 最终的问题出现在Channel.cc的71行,如下图: ![image](https://user-images.githubusercontent.com/4918159/95840930-5c8dd380-0d77-11eb-9a29-63b38f2b183f.png) 在tie_.lock()时出现coredump,应该是tie_成员变量已经不能正常访问了 具体堆栈信息如下: ![image](https://user-images.githubusercontent.com/4918159/95841351-d625c180-0d77-11eb-8711-8d3aa8665fe6.png)

GitHub issues are for tracking bugs, not for general discussing like a forum. If you have a general question to ask, send it to mailing list: [email protected] Or visit: https://groups.google.com/forum/#!forum/muduo-library...

您好!在最近的学习中遇到了这样的问题,就是进程刚启动时,如果因为某些原因退出,则日志不能flush到文件中。当然这只是一个小问题,改起来应该比较容易,我只是在这里提出来。 示例代码如下,应该是没有来得及进入`AsyncLogging::threadFunc()`中的`while`循环,`running_`已经变成`false`。虽然`while`循环之后有`output.flush()`,但是此时还没有写到`output`中。 ``` cpp #include #include #include std::shared_ptr gpAsyncLogging; void async_log_output(const char* msg, int len) { gpAsyncLogging->append(msg, len); } void async_log_flush() { // do nothing } int main() { gpAsyncLogging.reset(new...

Muduo failed to build with bazel because we missed to declare boost dependencies in several targets. This MR would help to fix these issues.

Adds CIFuzz to muduo's OSS-fuzz integration. In short, CIFuzz is a service offered by OSS-fuzz to run muduo's fuzzers during the CI to prevent bugs from being introduced. In this...