cobra to sentry fixes

This commit is contained in:
Benjamin Sergeant
2019-06-05 18:47:48 -07:00
parent d50125c62d
commit 15d8c663da
5 changed files with 71 additions and 26 deletions

View File

@ -109,6 +109,10 @@ namespace ix
HttpRequestArgsPtr args,
int redirects)
{
// We only have one socket connection, so we cannot
// make multiple requests concurrently.
std::lock_guard<std::mutex> lock(_mutex);
uint64_t uploadSize = 0;
uint64_t downloadSize = 0;
int code = 0;

View File

@ -156,5 +156,6 @@ namespace ix
std::thread _thread;
std::shared_ptr<Socket> _socket;
std::mutex _mutex; // to protect accessing the _socket (only one socket per client)
};
} // namespace ix