Skip to content

Commit 6334b5f

Browse files
yairgottfacebook-github-bot
authored andcommitted
changing AsyncServerSocket::acceptError to receive exception_wrapper
Reviewed By: yfeldblum Differential Revision: D25514804 fbshipit-source-id: 7e6ad5c6063d2cf5047f656c0f2336b34576c60b
1 parent ca3d752 commit 6334b5f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rsocket/benchmarks/BaselinesAsyncSocket.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@
119119
// std::move(socket), eventBase_, loadSize_, recvBufferLength_);
120120
// }
121121
//
122-
// void acceptError(const std::exception& ex) noexcept override {
123-
// LOG(FATAL) << "acceptError" << ex.what() << std::endl;
122+
// void acceptError(folly::exception_wrapper ex) noexcept override {
123+
// LOG(FATAL) << "acceptError" << ex << std::endl;
124124
// eventBase_.terminateLoopSoon();
125125
// }
126126
//

rsocket/transports/tcp/TcpConnectionAcceptor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ class TcpConnectionAcceptor::SocketCallback
4343
onAccept_(std::move(connection), *eventBase());
4444
}
4545

46-
void acceptError(const std::exception& ex) noexcept override {
47-
VLOG(2) << "TCP error: " << ex.what();
46+
void acceptError(folly::exception_wrapper ex) noexcept override {
47+
VLOG(2) << "TCP error: " << ex;
4848
}
4949

5050
folly::EventBase* eventBase() const {

0 commit comments

Comments
 (0)