You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it seems that if two messages comes simultaneously, then problems there may occure:
HttpMessageReader:read:int endIndex = HttpUtil.parseHttpRequest(...
I think "for loop" need there.
The text was updated successfully, but these errors were encountered:
That is very possible. The HTTP message reader functionality is not very well tested. It is only there to briefly show how a message reader could be made.
This design has been used as base for an IAP platform (IAP is a new network protocol - alternative to HTTP). This server can receive hundreds of thousands of messages per second without any problems. So - the over all design works, even if this current implementation might have some problems with HTTP messages.
and with more than one message , there is still a problem in com.jenkov.nioserver.MessageWriter#write bytesWritten is connected with one message , needed to be set to zero once message is all send
if(bytesWritten >= this.messageInProgress.length){
if(this.writeQueue.size() > 0){
this.messageInProgress = this.writeQueue.remove(0);
} else {
this.messageInProgress = null;
//todo unregister from selector
}
// bytesWritten need to be set to zero
bytesWritten = 0;
}
it seems that if two messages comes simultaneously, then problems there may occure:
HttpMessageReader:read:int endIndex = HttpUtil.parseHttpRequest(...
I think "for loop" need there.
The text was updated successfully, but these errors were encountered: