synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera (JIRA)" <>
Subject [jira] Commented: (SYNAPSE-344) Race condition on connection reuse causes 'Request already submitted' exception
Date Wed, 04 Jun 2008 14:51:45 GMT


Asankha C. Perera commented on SYNAPSE-344:


Can you test this against the latest codebase set to be released shortly.. steps and any material
to recreate would always be good to have


> Race condition on connection reuse causes 'Request already submitted' exception
> -------------------------------------------------------------------------------
>                 Key: SYNAPSE-344
>                 URL:
>             Project: Synapse
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 1.1.1
>         Environment: All environments
>            Reporter: Jake Lambert
>            Priority: Critical
> When using a proxy service and HTTP-NIO with a moderate number of concurrent requests
some requests fail with the following error:
> HttpServerWorker-25: Unexpected HTTP protocol error: Request already submitted
> org.apache.http.HttpException: Request already submitted
> 	at org.apache.http.impl.nio.DefaultNHttpClientConnection.submitRequest(
> 	at org.apache.synapse.transport.nhttp.ClientHandler.submitRequest(
> 	at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncRequest(
> 	at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(
> 	at
> 	at org.apache.axis2.engine.AxisEngine.send(
> 	at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(
> 	at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(
> 	at org.apache.axis2.client.OperationClient.execute(
> 	at com.alcatel.grizzly.synapse.custom.WsgFlexibleMEPClient.send(
> 	at com.alcatel.grizzly.synapse.custom.WsgSynapseEnvironment.send(
> 	at org.apache.synapse.endpoints.AddressEndpoint.send(
> 	at com.alcatel.grizzly.synapse.custom.WsgAddressEndpoint.send(
> 	at org.apache.synapse.mediators.builtin.SendMediator.mediate(
> 	at org.apache.synapse.mediators.AbstractListMediator.mediate(
> 	at org.apache.synapse.mediators.base.SequenceMediator.mediate(
> 	at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(
> 	at org.apache.axis2.engine.AxisEngine.receive(
> 	at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> 	at org.apache.synapse.transport.nhttp.ServerWorker.processPost(
> 	at
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
> 	at java.util.concurrent.ThreadPoolExecutor$ Source)
> 	at Source)
> This can occur in a situation similar to that in SYNAPSE-341 (remote WS returns its response
before the request is fully written).  It's due to a race condition when reusing a connection
between a client I/O dispatcher thread calling NHttpClientConnection.resetOutput() when the
request writing is complete and an HttpServerWorker thread calling NHttpClientConnection.submitRequest()
on the same pooled connection after it has been released when the response reading is complete.

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:
For additional commands, e-mail:

View raw message