Skip to content

Commit

Permalink
Revert "Write maximum of 16KB of data to an SSL connection per tick (f…
Browse files Browse the repository at this point in the history
…ixes eventmachine#233)" for eventmachine#273

This reverts commit b237c03.
  • Loading branch information
tmm1 committed Oct 21, 2011
1 parent 7b774d8 commit 86784d2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ext/ed.cpp
Expand Up @@ -1215,18 +1215,16 @@ void ConnectionDescriptor::_DispatchCiphertext()

char BigBuf [2048];
bool did_work;
int num_chunks = 0;

do {
did_work = false;

// try to drain ciphertext
while (SslBox->CanGetCiphertext() && num_chunks < 8) {
while (SslBox->CanGetCiphertext()) {
int r = SslBox->GetCiphertext (BigBuf, sizeof(BigBuf));
assert (r > 0);
_SendRawOutboundData (BigBuf, r);
did_work = true;
num_chunks += 1;
}

// Pump the SslBox, in case it has queued outgoing plaintext
Expand Down

0 comments on commit 86784d2

Please sign in to comment.