Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase receive buffer size to 256KB #67

Merged
merged 1 commit into from Aug 4, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -69,7 +69,10 @@ public class GerritConnection extends Thread implements Connector {
*/
public static final String CMD_STREAM_EVENTS = "gerrit stream-events";
private static final String GERRIT_VERSION_PREFIX = "gerrit version ";
private static final int SSH_RX_BUFFER_SIZE = 16384;
/* The buffer must support 256KB as real life messages can be pretty
* big. See https://issues.jenkins-ci.org/browse/JENKINS-44568
*/
private static final int SSH_RX_BUFFER_SIZE = 262400;
private static final int SSH_RX_SLEEP_MILLIS = 100;
/**
* The standard scheme used for stream-events.
Expand Down