trantor
trantor copied to clipboard
a non-blocking I/O tcp network lib based on c++14/17
# Envirmorment Centos7 cmake version 3.27.3 gcc version 13.2.0 (GCC) I have execute cmake .. , ```bash -- The C compiler identification is GNU 13.2.0 -- The CXX compiler identification...
1. We have TIMESTAMPTZ field with value: '2023-07-31 16:19:49.91874' 2. if we map it to trantor::Date class and invoke ::toDbLocalString() it returns '2023-07-31 16:19:49.091874' The microseconds part is converted incorrectly,...
TcpConnectionImpl.cc line 482 ``` if (errno == EPIPE || errno == ECONNRESET) // TODO: any others? { #ifdef _WIN32 LOG_TRACE
We have TIMESTAMPTZ field with value: '2023-07-31 16:19:49.91874' if we map it to trantor::Date class and invoke ::toDbLocalString() it returns '2023-07-31 16:19:49.091874' The microseconds part is converted incorrectly, because 91874...
Error found in release, #include is missing in trantor/utils/MsgBuffer.h, and more diffs in Utilities
In [KickoffTest.cc](https://github.com/an-tao/trantor/blob/master/trantor/tests/KickoffTest.cc), a Tcpserver Object is created. I wanted to exit this server when there is no client connection. The following is my code: ```C++ int main() { /**** omit...
Windows is not case-sensitive, so spelling includes and libraries in the wrong case doesn't do anything. But it's problematic when one tries to cross-compile from Linux. I had to fix...
TcpConnectionImpl::sendFile -- node->offset_ = static_cast(offset); TcpConnectionImpl::sendFileInLoop -- filePtr->offset_ += static_cast(nSend); on windows,off_t is defined with long, not longlong,so big file(more than 4G) will be error offset......
If there are socket errors like if the port [fails to bind ](https://github.com/an-tao/trantor/blob/master/trantor/net/inner/Socket.cc#L68), could Trantor throw an exception rather than exiting? In this case, the calling application could try again...
It will be more consistent way to find the c-ares library.