trantor

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

OTHER License

Stars
388
trantor - Latest Release

Published by an-tao 3 months ago

Changed

  • Add byte order detection for internal SHA1 implementation for OSX, POWER, RISC-V and s390.

Fixed

  • Fix Windows CI build fail by using the latest MSVC.

  • Fix the Botan TLS provider build on Linux.

  • Fix "pthread not found" build error when using Android NDK.

trantor -

Published by an-tao 5 months ago

changed

  • show forked repository build status.

  • Add cmake-format.

  • Some spelling corrections.

trantor -

Published by an-tao 6 months ago

Fixed

  • Fix data type conflict.

  • Fix build on latest c-ares.

trantor -

Published by an-tao 9 months ago

Changed

  • Make FileBufferNodeWin aware of UWP Win32 API.

  • Use ssize_t declared by toolchain when available.

trantor -

Published by an-tao 9 months ago

Changed

  • Add build badge for individual OS.

  • deinit libressl.

  • Remove mutex.

Fixed

  • Pile of fix for h2.

  • Fix a bug when sending data.

  • Fix c-ares CARES_EXTERN for static builds.

  • Fix header file name issue when cross-compiling on Windows.

  • Fix name issue when cross-compiling.

trantor -

Published by an-tao 11 months ago

Changed

  • Feature: Integrate spdlog as logging backend for Trantor Logger.

Fixed

  • Fix the botan backend always validating certificate and OpenSSL allowing empty ALPN.

  • Fix build error on OpenBSD.

  • Fix Botan leaking memory if connection force closed.

  • Fix a cmake warning.

  • Workaround botan backend init failure on MacOS.

  • Fix failing wstr conversion if locale is set to C.

trantor -

Published by an-tao about 1 year ago

[Fixed]

  • Fix OpenSSL: read can be incomplete.

  • Fix botan provider.

  • Fix botan3 not triggering handshake finish event.

  • Fix an compilation error when no STL lib is found.

trantor -

Published by an-tao about 1 year ago

Fixed

  • Fix an error when sending files.

  • Include header in TcpConnectionImpl.cc.

trantor -

Published by an-tao about 1 year ago

API changes list

  • Add NetEndian versions of toIp and toIpPort.

  • Add setsockopt to TcpClient and TcpServer.

  • Support setting max files in AsyncFileLogger.

  • Support returning multiple results for dns parsing.

Changed

  • Refactor SSL handling.

  • Add ability to use one log file until the size-limit.

  • Make the std::string_view work on windows.

  • Drop Botan 2 support and support Botan 3.

  • Make the getNextLoop method multi-thread safe.

  • Add fallback when OpenSSL not providing BLAKE2b.

Fixed

  • Fix override mark.

  • Add missing header with GCC 13.

  • Fix AresResolver.

  • Fix building built-in hashes on Windows.

  • Fix MSYS2/Cygwin compatibility issues.

  • Fix more build errors on win32/mingw.

  • Fix off_t(on windows off_t defined with long, not longlong).

  • Fix bug with Trantor::Date timeZoneOffset calculation.

  • Fix wrong usage of shared pointer in TcpClient ctor.

trantor -

Published by an-tao over 1 year ago

API Changes list

  • Add a method to the Logger class to enable local time displaying.

  • TRNANTOR_LOG_COMPACT - compact logs without source code details.

Changed

  • Refactor TcpServer I/O loop logic.

Fixed

  • Fix a conan issue.
trantor -

Published by an-tao over 1 year ago

API Changes list

Changed

  • Use gtest 1.13 in github actions

Fixed

trantor -

Published by an-tao over 1 year ago

API Changes list

Changed

  • Search for \ if under msvc

Fixed

trantor -

Published by an-tao almost 2 years ago

API Changes list

Changed

Fixed

  • Fix Date::timezoneOffset().

  • Fix socket fd leak if Connector destruct before connection callback is made.

trantor -

Published by an-tao about 2 years ago

API changes list

  • Add utc methods for trantor::Date.

Changed

  • Remove an unnecessary semi-colon.

  • Added support for Solaris.

  • Define ssize_t as std::intptr_t on Windows.

  • Add an environment without openssl to github actions.

  • Added SSL Error Trace Log and mTLS Samples.

  • Use LOG_TRACE instead of LOG_DEBUG.

Fixed

  • Fix a race condition.

  • Fix iterator invalidation bug when stopping TCP server.

  • Partial fix of exception safety in the event loop.

trantor -

Published by an-tao over 2 years ago

API changes list

  • Add support for sending data streams via callback.

  • Added mTLS support.

Changed

  • Make MsgBuffer constructor explicit.

  • Always queue connectDestroyed() in loop.

  • Stop calling abort() in runtime.

  • Give EventLoopThread::loop_ static lifetime.

  • Optimization SSL name matching.

  • Clarify SSL error message.

  • Rename BUILD_TRANTOR_SHARED to BUILD_SHARED_LIBS.

Fixed

  • Fix tolower with sanitizer cfi

  • include <pthread_np.h> unconditionally on freebsd

  • Fix thread sanitizer.

trantor -

Published by an-tao over 2 years ago

API changes list

Changed

  • Move EventLoop::runAfter to a template.

  • Remove an assertion when removing channels.

  • Prevent TcpClient::removeConnection call on deleted TcpClient instance.

  • Wait for loop to exit in EventLoop destructor.

  • Add r-reference version of set-callback methods to TcpConnectionImpl.

Fixed

  • Fix a bug when closing connections on Windows/MacOS.

  • Fix logger causes if statement mismatch.

trantor -

Published by an-tao almost 3 years ago

API changes list

Changed

  • Correctly handle the error of the getaddrinfo function

Fixed

  • Fix the error when sending partial files
trantor -

Published by an-tao almost 3 years ago

API changes list

  • TcpClientImpl support SSL client certificate

Changed

  • Allow RVO in fromDbStringLocal

Fixed

  • Make sure resolvers are added when C-Ares is manually disabled
trantor - v1.5.2

Published by an-tao about 3 years ago

Changed

  • Disable setting SSL Configs when using LibreSSL

  • cmake: Use GNUInstallDirs to figure out install dirs

  • support HaikuOS

  • Improve Error handling for certificates/private keys

  • Make c-ares support optional when building

  • Use locale.h

  • Assert fd >= 0 in updateChannel()

  • Add Clang support for -Wall -Wextra -Werror; fix -Wunused-parameter

Fixed

  • Fix a small memory leak

  • Fix errors in log macros

  • Fix a race condition when TcpClient destroyed before connected

  • Fix the error of calling removeAndResetChannel twice

  • Fix a bug when EAGAIN on reading sockets

  • Fix compilation warnings

  • Fix a potential race condition

trantor -

Published by an-tao about 3 years ago

Changed

  • Fix warning C4244 in MSVC

  • Disable strict compiler check on Windows with GCC

  • Added support for paths containing unicode characters on Windows

  • Add BUILD_DOC cmake option (doxygen)

  • Use make_shared instead of shared_ptr(new)

  • Detect and handle MinGW

Fixed

  • Fix the destructor of AresResolver

  • Fix memory leak in NormalResolver