ASF Bugzilla – Attachment 34559 Details for
Bug 60523
Reduce number of network packets that server sends to client via WebSocket connection
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Patch for WsRemoteEndpointImplBase.java
WsRemoteEndpointImplBase.patch (text/plain), 777 bytes, created by
Ilgar Kovalyov
on 2016-12-27 11:59:34 UTC
(
hide
)
Description:
Patch for WsRemoteEndpointImplBase.java
Filename:
MIME Type:
Creator:
Ilgar Kovalyov
Created:
2016-12-27 11:59:34 UTC
Size:
777 bytes
patch
obsolete
>494,495c494,505 >< doWrite(mp.getEndHandler(), mp.getBlockingWriteTimeoutExpiry(), >< headerBuffer, mp.getPayload()); >--- >> ByteBuffer payLoad = mp.getPayload(); >> int payLoadSize = payLoad.limit(); >> if (payLoadSize <= 65536) { >> ByteBuffer totalBuffer = ByteBuffer.allocate(headerBuffer.limit() + payLoadSize); >> totalBuffer.put(headerBuffer); >> totalBuffer.put(payLoad); >> doWrite(mp.getEndHandler(), mp.getBlockingWriteTimeoutExpiry(), totalBuffer); >> } >> else { >> doWrite(mp.getEndHandler(), mp.getBlockingWriteTimeoutExpiry(), >> headerBuffer, payLoad); >> }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 60523
: 34559