trantor icon indicating copy to clipboard operation
trantor copied to clipboard

a non-blocking I/O tcp network lib based on c++14/17

Results 43 trantor issues
Sort by recently updated
recently updated
newest added

Just tried to use and implement simple tcp proxy server: https://github.com/gonwan/toys/tree/master/webframework-benchmark/trantor-proxy The trantor library is super fast, and one api issue. For applications like proxy(tunnel, replay etc...), it's better to...

enhancement

https://github.com/an-tao/trantor/blob/62c9027d952b90f763cd9482fb729fa9a0924428/trantor/utils/Logger.cc#L197

When a controller constructor throws, the event loop appears to exit cleanly after merging PR #224 . However, when the program exits, a fatal error is triggered. Minimal reproduction using...

when trying to update `c-ares` in `vcpkg` from 1.27 to 1.28, building `trantor` failed due to use of deprecated functions from c-ares 1.28.0. ``` ...vcpkg/buildtrees/trantor/src/v1.5.17-2fee79a355.clean/trantor/net/inner/AresResolver.cc:127:5: error: 'ares_gethostbyname' is deprecated: Use...

enhancement

https://github.com/an-tao/trantor/blob/c92280119a6ebaf71fe6aca0d128222edd028b22/CMakeLists.txt#L369 is trying to install find modules. Find modules are intended only for use by package *consumers*, not by package publishers. Publishers are expected to use configs instead.

After this change: 1. CMakeLists is easy to read/modify. 2. CMakeLists is formated by cmake-format. 3. Build option's values are more deterministic, if not find the libs, it will build...

Macros or static functions called: `LOG_DEBUG`, `LOG_INFO`, ... are unfortunatly quite common and caused me compilation issues with other libraries, would it be possible to prefix all of them by...

I successfully used the RSA certificate in the following three methods: ``` auto policy = TLSPolicy::defaultClientPolicy(); policy->setCertPath("./client-crt.pem") .setKeyPath("./server-key.pem") .setCaPath("./ca-crt.pem") .setHostname("localhost"); client[i]->enableSSL(policy); ``` but encountered loading failure with the SM2 certificate.

On a hosted server with SSL certificates, all functions and API endpoints that relied on `trantor::ConcurrentTaskQueue::runTaskInQueue` started hanging indefinitely ~~as if the mutex is locked and never unlocked, or something...