Skip to content

Commit

Permalink
Fixed a bug with Letsencrypt certs
Browse files Browse the repository at this point in the history
One of internal buffers was too small
  • Loading branch information
SChernykh committed Nov 27, 2024
1 parent 1029faa commit 86962eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stratum_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ StratumServer::StratumServer(p2pool* pool)
, m_totalFailedShares(0)
, m_apiLastUpdateTime(0)
{
m_callbackBuf.resize(STRATUM_BUF_SIZE);
// Need a bigger buffer for the TLS handshake
m_callbackBuf.resize(STRATUM_CALLBACK_BUF_SIZE);

// Diffuse the initial state in case it has low quality
m_rng.discard(10000);
Expand Down
1 change: 1 addition & 0 deletions src/stratum_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class p2pool;
class BlockTemplate;

static constexpr size_t STRATUM_BUF_SIZE = log::Stream::BUF_SIZE + 1;
static constexpr size_t STRATUM_CALLBACK_BUF_SIZE = 16384;
static constexpr int DEFAULT_STRATUM_PORT = 3333;

class StratumServer : public TCPServer
Expand Down

0 comments on commit 86962eb

Please sign in to comment.