synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "HongBo Xu (JIRA)" <>
Subject [jira] Created: (SYNAPSE-247) Network exception caused Synapse-Http-Transport Stop working
Date Wed, 05 Mar 2008 01:25:40 GMT
Network exception caused Synapse-Http-Transport Stop working

                 Key: SYNAPSE-247
             Project: Synapse
          Issue Type: Bug
          Components: Transports
    Affects Versions: 1.1.1
            Reporter: HongBo Xu
            Priority: Critical

	axisClient-->Synapse--->axisServer(not started)
	If running synapse in debugging mode, we will see once a axisClient connect to synapse, 
	a new HttpServerWorker-Thread will be created, but never stop, and soon the thread-pool will
be exhaused;
	1) axisClient send a request to synapse (the request's content must be large enough( etc
exceed 1024 character))
	2) synapse relay the request from axisClient to a not started axisServer
	3) then synapse will blocked while axis2Req.streamContents(), and the thread will be blocked

    axisReq using a internal Channel to transfer streamed data of axis request to Http underlying
encoder for transport 
    so if the request content is larger than channel's internal buffer, streamMessageContents()
will blocked and 
    waiting the successfully http-connection to read the data from channel.
        OutputStream out = Channels.newOutputStream(pipe.sink()); //pipe is 
    	//read data from channel
    	//write readed data to http-core-nio's underlying encoder
    But if http-connection failed, ClientHandler's callback cactch it and just shutdown httpConnection
    the streamMessageContents() will blocked for ever
    public void exception(final NHttpClientConnection conn, final IOException e) {
    private void sendAsyncRequest(EndpointReference epr, MessageContext msgContext) throws
AxisFault {

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