Opened 7 years ago
#11629 new Bugs
Appears clash when the boost::log and boost::asio::io_service are running in the same time.
Reported by: | Owned by: | chris_kohlhoff | |
---|---|---|---|
Milestone: | To Be Determined | Component: | asio |
Version: | Boost 1.58.0 | Severity: | Problem |
Keywords: | boost::log boost::asio::io_service | Cc: | 1054116023@… |
Description
I meet the problem that the boost::log can't output any of log to target file when executes boost::asio::io_service.run() for socket. The socket uses the functions as followed:
1) async_connect 2) async_read_until. It receives data from server. 3) async_write. It sends heartbeat data interval 60 seconds.
But if I mask the _ioService.run(),The boost::log work normally. what reason is that? what is I remind when use the boost::log and boost::asio::server?
BOOST library version is boost_1_58. My OS information as followed:
[liangzh@localhost agent]$ uname -a
Linux localhost 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[liangzh@localhost lebe_log]$ uname -m
x86_64
[liangzh@localhost lebe_log]$ uname -r
2.6.32-358.el6.x86_64
[liangzh@localhost agent]$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.