We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fd050d commit e8da70dCopy full SHA for e8da70d
1 file changed
src/main/java/org/javawebstack/httpserver/util/websocket/WebSocketFrame.java
@@ -74,7 +74,7 @@ public WebSocketFrame setPayload(byte[] payload) {
74
return this;
75
}
76
77
- public synchronized void write(OutputStream stream) throws IOException {
+ public void write(OutputStream stream) throws IOException {
78
stream.write(flags | opcode);
79
int lengthByte = payload.length > 125 ? (payload.length > 0xFFFF ? 127 : 126) : payload.length;
80
stream.write((maskKey != null ? 0b1000_0000 : 0) | lengthByte);
0 commit comments