-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1008 from gurkancakir/master
io.netty.handler.codec.http.TooLongHttpLineException: An HTTP line is larger than 4096 bytes.
- Loading branch information
Showing
3 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
src/main/java/com/corundumstudio/socketio/HttpRequestDecoderConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.corundumstudio.socketio; | ||
|
||
public class HttpRequestDecoderConfiguration { | ||
|
||
private int maxInitialLineLength; | ||
private int maxHeaderSize; | ||
private int maxChunkSize; | ||
|
||
public HttpRequestDecoderConfiguration(int maxInitialLineLength, int maxHeaderSize, int maxChunkSize) { | ||
this.maxInitialLineLength = maxInitialLineLength; | ||
this.maxHeaderSize = maxHeaderSize; | ||
this.maxChunkSize = maxChunkSize; | ||
} | ||
|
||
public HttpRequestDecoderConfiguration() { | ||
this(4096, 8192, 8192); | ||
} | ||
|
||
public int getMaxInitialLineLength() { | ||
return maxInitialLineLength; | ||
} | ||
|
||
public void setMaxInitialLineLength(int maxInitialLineLength) { | ||
this.maxInitialLineLength = maxInitialLineLength; | ||
} | ||
|
||
public int getMaxHeaderSize() { | ||
return maxHeaderSize; | ||
} | ||
|
||
public void setMaxHeaderSize(int maxHeaderSize) { | ||
this.maxHeaderSize = maxHeaderSize; | ||
} | ||
|
||
public int getMaxChunkSize() { | ||
return maxChunkSize; | ||
} | ||
|
||
public void setMaxChunkSize(int maxChunkSize) { | ||
this.maxChunkSize = maxChunkSize; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters