Skip to content

Tags: gemini/cpp-httplib

Tags

v0.9.8-gemini

Toggle v0.9.8-gemini's commit message

Unverified

No user is associated with the committer email.
initialize buffer array

v0.9.7

Toggle v0.9.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
support custom ssl ctx configuration for SSLServer (yhirose#1073)

v0.9.6

Toggle v0.9.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

v0.9.5

Toggle v0.9.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Split the header only if needed (yhirose#1060)

* Update split.py

* Update split.py

* Update split.py

* Update split.py

v0.9.4

Toggle v0.9.4's commit message
Fix "Issue 37742 in oss-fuzz: cpp-httplib:server_fuzzer: Timeout in s…

…erver_fuzzer"

v0.9.3

Toggle v0.9.3's commit message
Append '_Online' suffix to Unit test names that access external servers

v0.9.2

Toggle v0.9.2's commit message
Allow `LargeRandomData` test only on Windows

v0.9.1

Toggle v0.9.1's commit message
Added a test case for yhirose#996

v0.9.0

Toggle v0.9.0's commit message
Updated copyright year

v0.8.9

Toggle v0.8.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix virtual call in ClientImpl::~ClientImpl() (yhirose#942)

* Fix virtual call in ClientImpl::~ClientImpl()

This fixes a warning in clang tidy:

> Call to virtual method 'ClientImpl::shutdown_ssl' during
> destruction bypasses virtual dispatch

ClientImpl::~ClientImpl() calls lock_socket_and_shutdown_and_close()
that itself calls shutdown_ssl().  However, shutdown_ssl() is virtual
and C++ does not perform virtual dispatch in destructors, which results
in the wrong overload being called.

This change adds a non-virtual shutdown_ssl_impl() function that is
called from ~SSLClient().  We also inline sock_socket_and_shutdown_and_close()
and removes the virtual call in ~ClientImpl().

* Inline and remove lock_socket_and_shutdown_and_close()

The function only has one caller.