Skip to content

Commit

Permalink
http/local/Connection: remove misplaced noexcept
Browse files Browse the repository at this point in the history
Fixes crash bug from commit 3b1d17a
  • Loading branch information
MaxKellermann committed Jan 15, 2025
1 parent 6e7d492 commit 442e313
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cm4all-beng-proxy (19.2) unstable; urgency=low

*
* http/local: fix crash bug (19.0 regression)

--

Expand Down
2 changes: 1 addition & 1 deletion src/http/local/Connection.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "net/UniqueSocketDescriptor.hxx"

LhttpConnection::LhttpConnection(CreateStockItem c,
ListenChildStockItem &_child) noexcept
ListenChildStockItem &_child)
:StockItem(c),
logger(*this),
child(_child),
Expand Down
5 changes: 4 additions & 1 deletion src/http/local/Connection.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ class LhttpConnection final
SocketEvent event;

public:
/**
* Throws on connect error.
*/
explicit LhttpConnection(CreateStockItem c,
ListenChildStockItem &_child) noexcept;
ListenChildStockItem &_child);
~LhttpConnection() noexcept override;

SocketDescriptor GetSocket() const noexcept {
Expand Down

0 comments on commit 442e313

Please sign in to comment.