[ 
https://issues.apache.org/jira/browse/SYNAPSE-913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13484001#comment-13484001
 ] 

Amila Chinthaka Suriarachchi commented on SYNAPSE-913:
------------------------------------------------------

Seems like a problem with the pass through transport. I put some console logs 
and check the behaviour of the 
org.apache.synapse.transport.passthru.TargetHandler. Although there are two 
connections being created only one connection is called with requestReady 
method. I am not sure why one is called an other is not called.

In General, for NHttp connections we need to call the submit request method at 
the connected method. If we look at the existing nhttp code[1] this has done in 
that way. However in the new pass through transport[2] it is called at the 
requestReady method (within the request.start(conn)) . Does any one have an 
idea about this change?

Then I modify the new pass through to call submit request at the connect 
method. After this change all connections established correctly. But second and 
third connections did not send a body. This may not be a problem with cloning.

thanks,
Amila.


[1] 
https://svn.apache.org/repos/asf/synapse/trunk/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ClientHandler.java
[2] 
https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/components/transports/org.wso2.carbon.transports.passthru/4.0.2/src/main/java/org/wso2/carbon/transport/passthru/TargetHandler.java
                
> Pass Through HTTP Transport for Synapse and Using the Pass Through Transport 
> by Default
> ---------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-913
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-913
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Core, Transports
>         Environment: Any
>            Reporter: Hiranya Jayathilaka
>             Fix For: FUTURE
>
>         Attachments: patch_with_some_fixes.txt, SYNAPSE_PASS_THRU_8.patch
>
>
> This improvement has 2 main aspects:
> 1. Contributing the pass through HTTP transport developed at WSO2 to Synapse
> 2. Modifying Synapse to use the pass through HTTP transport as the default 
> (this requires some minor changes to the transport too)
> The pass through transport, as it stands now, can only be used for simple 
> pass through, static routing and header based routing scenarios. It cannot be 
> used for any scenario where content lookup or manipulation is required. This 
> effort makes the pass through transport one of the core transports of 
> Synapse, and modifies Synapse and the transport in a way so that the 
> transport can be used in any scenario without restrictions.
> See the conversations at:
> http://old.nabble.com/Message-Relay-Support-for-Synapse-to33693068.html
> http://mail-archives.apache.org/mod_mbox/synapse-dev/201209.mbox/browser

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to