You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Steffen Pingel (JIRA)" <ji...@apache.org> on 2007/02/12 23:41:06 UTC

[jira] Commented: (HTTPCORE-45) Pipelined requests cause HttpException

    [ https://issues.apache.org/jira/browse/HTTPCORE-45?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472446 ] 

Steffen Pingel commented on HTTPCORE-45:
----------------------------------------

Yes, I certainly agree that queuing is the appropriate measure to fix this. 

I wanted to share the patch though in case someone else running into this problem needs a work around. Sorry for not pointing that out.


> Pipelined requests cause HttpException
> --------------------------------------
>
>                 Key: HTTPCORE-45
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-45
>             Project: HttpComponents Core
>          Issue Type: Bug
>          Components: HttpCore NIO
>            Reporter: Steffen Pingel
>             Fix For: 4.0-alpha4
>
>         Attachments: httpcomponents-nio-pipelining-fix.txt
>
>
> I have a simple server implementation that uses DefaultServerIOEventDispatch and BufferingHttpServiceHandler. Pipelined requests can cause an exception when DefaultNHttpServerConnection receives another request while still processing the response to a previous request:
> org.apache.http.HttpException: Response already submitted
> 	at org.apache.http.impl.nio.DefaultNHttpServerConnection.submitResponse(DefaultNHttpServerConnection.java:162)
> 	at org.apache.http.nio.protocol.BufferingHttpServiceHandler.commitResponse(BufferingHttpServiceHandler.java:369)
> 	at org.apache.http.nio.protocol.BufferingHttpServiceHandler.processRequest(BufferingHttpServiceHandler.java:358)
> 	at org.apache.http.nio.protocol.BufferingHttpServiceHandler.requestReceived(BufferingHttpServiceHandler.java:167)
> 	at org.apache.http.impl.nio.DefaultNHttpServerConnection.consumeInput(DefaultNHttpServerConnection.java:97)
> 	at org.apache.http.impl.nio.DefaultServerIOEventDispatch.inputReady(DefaultServerIOEventDispatch.java:77)
> [...]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org