Re: [Dev] Call mediator does not return the body for 202 response

2016-04-10 Thread Prabath Ariyarathna
Hi Niranjan.

Hope you talking about call mediator non-blocking mode. I have checked the
attached configuration with the ESB 4.9.0 and got the correct response to
the client side. Please check with the attached configuration.

[2016-04-10 00:48:51,839] DEBUG - wire >> "POST /services/Pass202
HTTP/1.1[\r][\n]"
[2016-04-10 00:48:51,839] DEBUG - wire >> "Host:
wso2s-macbook-pro-2.local:8280[\r][\n]"
[2016-04-10 00:48:51,839] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
[2016-04-10 00:48:51,839] DEBUG - wire >> "Content-Length: 0[\r][\n]"
[2016-04-10 00:48:51,840] DEBUG - wire >> "User-Agent: Mozilla/5.0
(Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/49.0.2623.110 Safari/537.36[\r][\n]"
[2016-04-10 00:48:51,840] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]"
[2016-04-10 00:48:51,840] DEBUG - wire >> "Origin:
chrome-extension://mkhojklkhkdaghjjfdnphfphiaiohkef[\r][\n]"
[2016-04-10 00:48:51,840] DEBUG - wire >> "Accept: */*[\r][\n]"
[2016-04-10 00:48:51,840] DEBUG - wire >> "Accept-Encoding: gzip,
deflate[\r][\n]"
[2016-04-10 00:48:51,840] DEBUG - wire >> "Accept-Language:
en-US,en;q=0.8[\r][\n]"
[2016-04-10 00:48:51,840] DEBUG - wire >> "Cookie:
_js_datr=gKYAV5aKWlsDZ_YtuCr_q50T[\r][\n]"
[2016-04-10 00:48:51,840] DEBUG - wire >> "[\r][\n]"
[2016-04-10 00:48:51,888]  INFO - TimeoutHandler This engine will expire
all callbacks after : 120 seconds, irrespective of the timeout action,
after the specified or optional timeout
[2016-04-10 00:48:51,986] DEBUG - wire << "POST /test HTTP/1.1[\r][\n]"
[2016-04-10 00:48:51,986] DEBUG - wire << "Cookie:
_js_datr=gKYAV5aKWlsDZ_YtuCr_q50T[\r][\n]"
[2016-04-10 00:48:51,986] DEBUG - wire << "Origin:
chrome-extension://mkhojklkhkdaghjjfdnphfphiaiohkef[\r][\n]"
[2016-04-10 00:48:51,986] DEBUG - wire << "Accept: */*[\r][\n]"
[2016-04-10 00:48:51,986] DEBUG - wire << "Cache-Control: no-cache[\r][\n]"
[2016-04-10 00:48:51,986] DEBUG - wire << "Accept-Encoding: gzip,
deflate[\r][\n]"
[2016-04-10 00:48:51,987] DEBUG - wire << "Accept-Language:
en-US,en;q=0.8[\r][\n]"
[2016-04-10 00:48:51,987] DEBUG - wire << "Content-Type:
application/x-www-form-urlencoded; charset=UTF-8[\r][\n]"
[2016-04-10 00:48:51,987] DEBUG - wire << "Transfer-Encoding:
chunked[\r][\n]"
[2016-04-10 00:48:51,987] DEBUG - wire << "Host: demo4010703.mockable.io:80
[\r][\n]"
[2016-04-10 00:48:51,987] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
[2016-04-10 00:48:51,987] DEBUG - wire << "User-Agent:
Synapse-PT-HttpComponents-NIO[\r][\n]"
[2016-04-10 00:48:51,987] DEBUG - wire << "[\r][\n]"
[2016-04-10 00:48:51,987] DEBUG - wire << "0[\r][\n]"
[2016-04-10 00:48:51,987] DEBUG - wire << "[\r][\n]"
[2016-04-10 00:48:52,318] DEBUG - wire >> "HTTP/1.1 202 Accepted[\r][\n]"
[2016-04-10 00:48:52,318] DEBUG - wire >> "Content-Type: application/xml;
charset=UTF-8[\r][\n]"
[2016-04-10 00:48:52,318] DEBUG - wire >> "access-control-allow-origin:
*[\r][\n]"
[2016-04-10 00:48:52,318] DEBUG - wire >> "Date: Sat, 09 Apr 2016 19:18:52
GMT[\r][\n]"
[2016-04-10 00:48:52,318] DEBUG - wire >> "Server: Google Frontend[\r][\n]"
[2016-04-10 00:48:52,319] DEBUG - wire >> "Content-Length: 11[\r][\n]"
[2016-04-10 00:48:52,319] DEBUG - wire >> "[\r][\n]"
[2016-04-10 00:48:52,319] DEBUG - wire >> "test"
[2016-04-10 00:48:52,329] DEBUG - wire << "HTTP/1.1 202 Accepted[\r][\n]"
[2016-04-10 00:48:52,329] DEBUG - wire << "access-control-allow-origin:
*[\r][\n]"
[2016-04-10 00:48:52,329] DEBUG - wire << "Content-Type: application/xml;
charset=UTF-8[\r][\n]"
[2016-04-10 00:48:52,329] DEBUG - wire << "Date: Sat, 09 Apr 2016 19:18:52
GMT[\r][\n]"
[2016-04-10 00:48:52,329] DEBUG - wire << "Transfer-Encoding:
chunked[\r][\n]"
[2016-04-10 00:48:52,329] DEBUG - wire << "Connection: keep-alive[\r][\n]"
[2016-04-10 00:48:52,329] DEBUG - wire << "[\r][\n]"
[2016-04-10 00:48:52,330] DEBUG - wire << "b[\r][\n]"
[2016-04-10 00:48:52,330] DEBUG - wire << "test[\r][\n]"
[2016-04-10 00:48:52,330] DEBUG - wire << "0[\r][\n]"
[2016-04-10 00:48:52,330] DEBUG - wire << "[\r][\n]"

Thanks

On Sat, Apr 9, 2016 at 9:36 PM, Niranjan Karunanandham 
wrote:

> Hi ESB Team,
>
> In ESB 4.9.0, the call mediator is not sending the response body to the
> client when the backend sends a 202 response with body. The wirelogs are
> available [1]. Is this a known bug?
>
> [1] -
> [2016-04-08 10:52:41,048] DEBUG - wire >> "POST /services/test4
> HTTP/1.1[\r][\n]"
> [2016-04-08 10:52:41,048] DEBUG - wire >> "User-Agent: curl/7.35.0[\r][\n]"
> [2016-04-08 10:52:41,049] DEBUG - wire >> "Host: localhost:8243[\r][\n]"
> [2016-04-08 10:52:41,049] DEBUG - wire >> "Accept: application/xml[\r][\n]"
> [2016-04-08 10:52:41,049] DEBUG - wire >> "Content-Type:
> application/xml[\r][\n]"
> [2016-04-08 10:52:41,049] DEBUG - wire >> "Content-Length: 12[\r][\n]"
> [2016-04-08 10:52:41,049] DEBUG - wire >> "[\r][\n]"
> [2016-04-08 10:52:41,049] DEBUG - wire >> "hello"
> [2016-04-08 10:52:41,051]  INFO - LogMediator To: /services/test4,
> 

Re: [Dev] Call mediator does not return the body for 202 response

2016-04-10 Thread Niranjan Karunanandham
Hi Prabath,

If so, isn't this a bug? I have created a public JIRA [1] for this.

[1] - https://wso2.org/jira/browse/ESBJAVA-4552

Regards,
Nira

On Sun, Apr 10, 2016 at 10:28 AM, Prabath Ariyarathna 
wrote:

> Hi Niranjan.
>
> I think this only happens when you have content aware mediators in your
> sequence(You can check with removing full log mediators). Inside the
> RelayUtils we are checking status code equal to the 202[1] and ignore build
> the response body. So reason could be this. You can debug the RelayUtils to
> confirm the behavior.
>
> [1]
> https://github.com/wso2/wso2-synapse/blob/Apache-Synapse-2.1.3-wso2v11/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/util/RelayUtils.java#L92-L96
>
> Thanks.
>
> On Sun, Apr 10, 2016 at 3:04 AM, Niranjan Karunanandham  > wrote:
>
>> Hi Prabath,
>>
>> With the backend you have provided it works. I tested it with a backend
>> where the response header has Transfer-Encoding has chunked. I mocked the
>> backend in another ESB instance. I have attached attached both the proxy
>> services where proxy test4 (ESB instance with offset 0) calls MyMockProxy
>> (in another ESB instance with offset 1).
>>
>> Regards,
>> Nira
>>
>>
>> On Sun, Apr 10, 2016 at 12:51 AM, Prabath Ariyarathna > > wrote:
>>
>>> Hi Niranjan.
>>>
>>> Hope you talking about call mediator non-blocking mode. I have checked
>>> the attached configuration with the ESB 4.9.0 and got the correct response
>>> to the client side. Please check with the attached configuration.
>>>
>>> [2016-04-10 00:48:51,839] DEBUG - wire >> "POST /services/Pass202
>>> HTTP/1.1[\r][\n]"
>>> [2016-04-10 00:48:51,839] DEBUG - wire >> "Host:
>>> wso2s-macbook-pro-2.local:8280[\r][\n]"
>>> [2016-04-10 00:48:51,839] DEBUG - wire >> "Connection:
>>> keep-alive[\r][\n]"
>>> [2016-04-10 00:48:51,839] DEBUG - wire >> "Content-Length: 0[\r][\n]"
>>> [2016-04-10 00:48:51,840] DEBUG - wire >> "User-Agent: Mozilla/5.0
>>> (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko)
>>> Chrome/49.0.2623.110 Safari/537.36[\r][\n]"
>>> [2016-04-10 00:48:51,840] DEBUG - wire >> "Cache-Control:
>>> no-cache[\r][\n]"
>>> [2016-04-10 00:48:51,840] DEBUG - wire >> "Origin:
>>> chrome-extension://mkhojklkhkdaghjjfdnphfphiaiohkef[\r][\n]"
>>> [2016-04-10 00:48:51,840] DEBUG - wire >> "Accept: */*[\r][\n]"
>>> [2016-04-10 00:48:51,840] DEBUG - wire >> "Accept-Encoding: gzip,
>>> deflate[\r][\n]"
>>> [2016-04-10 00:48:51,840] DEBUG - wire >> "Accept-Language:
>>> en-US,en;q=0.8[\r][\n]"
>>> [2016-04-10 00:48:51,840] DEBUG - wire >> "Cookie:
>>> _js_datr=gKYAV5aKWlsDZ_YtuCr_q50T[\r][\n]"
>>> [2016-04-10 00:48:51,840] DEBUG - wire >> "[\r][\n]"
>>> [2016-04-10 00:48:51,888]  INFO - TimeoutHandler This engine will expire
>>> all callbacks after : 120 seconds, irrespective of the timeout action,
>>> after the specified or optional timeout
>>> [2016-04-10 00:48:51,986] DEBUG - wire << "POST /test HTTP/1.1[\r][\n]"
>>> [2016-04-10 00:48:51,986] DEBUG - wire << "Cookie:
>>> _js_datr=gKYAV5aKWlsDZ_YtuCr_q50T[\r][\n]"
>>> [2016-04-10 00:48:51,986] DEBUG - wire << "Origin:
>>> chrome-extension://mkhojklkhkdaghjjfdnphfphiaiohkef[\r][\n]"
>>> [2016-04-10 00:48:51,986] DEBUG - wire << "Accept: */*[\r][\n]"
>>> [2016-04-10 00:48:51,986] DEBUG - wire << "Cache-Control:
>>> no-cache[\r][\n]"
>>> [2016-04-10 00:48:51,986] DEBUG - wire << "Accept-Encoding: gzip,
>>> deflate[\r][\n]"
>>> [2016-04-10 00:48:51,987] DEBUG - wire << "Accept-Language:
>>> en-US,en;q=0.8[\r][\n]"
>>> [2016-04-10 00:48:51,987] DEBUG - wire << "Content-Type:
>>> application/x-www-form-urlencoded; charset=UTF-8[\r][\n]"
>>> [2016-04-10 00:48:51,987] DEBUG - wire << "Transfer-Encoding:
>>> chunked[\r][\n]"
>>> [2016-04-10 00:48:51,987] DEBUG - wire << "Host:
>>> demo4010703.mockable.io:80[\r][\n]"
>>> [2016-04-10 00:48:51,987] DEBUG - wire << "Connection:
>>> Keep-Alive[\r][\n]"
>>> [2016-04-10 00:48:51,987] DEBUG - wire << "User-Agent:
>>> Synapse-PT-HttpComponents-NIO[\r][\n]"
>>> [2016-04-10 00:48:51,987] DEBUG - wire << "[\r][\n]"
>>> [2016-04-10 00:48:51,987] DEBUG - wire << "0[\r][\n]"
>>> [2016-04-10 00:48:51,987] DEBUG - wire << "[\r][\n]"
>>> [2016-04-10 00:48:52,318] DEBUG - wire >> "HTTP/1.1 202 Accepted[\r][\n]"
>>> [2016-04-10 00:48:52,318] DEBUG - wire >> "Content-Type:
>>> application/xml; charset=UTF-8[\r][\n]"
>>> [2016-04-10 00:48:52,318] DEBUG - wire >> "access-control-allow-origin:
>>> *[\r][\n]"
>>> [2016-04-10 00:48:52,318] DEBUG - wire >> "Date: Sat, 09 Apr 2016
>>> 19:18:52 GMT[\r][\n]"
>>> [2016-04-10 00:48:52,318] DEBUG - wire >> "Server: Google
>>> Frontend[\r][\n]"
>>> [2016-04-10 00:48:52,319] DEBUG - wire >> "Content-Length: 11[\r][\n]"
>>> [2016-04-10 00:48:52,319] DEBUG - wire >> "[\r][\n]"
>>> [2016-04-10 00:48:52,319] DEBUG - wire >> "test"
>>> [2016-04-10 00:48:52,329] DEBUG - wire << "HTTP/1.1 202 Accepted[\r][\n]"
>>> [2016-04-10 00:48:52,329] 

Re: [Dev] Call mediator does not return the body for 202 response

2016-04-10 Thread Niranjan Karunanandham
Hi Prabath,

With the backend you have provided it works. I tested it with a backend
where the response header has Transfer-Encoding has chunked. I mocked the
backend in another ESB instance. I have attached attached both the proxy
services where proxy test4 (ESB instance with offset 0) calls MyMockProxy
(in another ESB instance with offset 1).

Regards,
Nira


On Sun, Apr 10, 2016 at 12:51 AM, Prabath Ariyarathna 
wrote:

> Hi Niranjan.
>
> Hope you talking about call mediator non-blocking mode. I have checked
> the attached configuration with the ESB 4.9.0 and got the correct response
> to the client side. Please check with the attached configuration.
>
> [2016-04-10 00:48:51,839] DEBUG - wire >> "POST /services/Pass202
> HTTP/1.1[\r][\n]"
> [2016-04-10 00:48:51,839] DEBUG - wire >> "Host:
> wso2s-macbook-pro-2.local:8280[\r][\n]"
> [2016-04-10 00:48:51,839] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
> [2016-04-10 00:48:51,839] DEBUG - wire >> "Content-Length: 0[\r][\n]"
> [2016-04-10 00:48:51,840] DEBUG - wire >> "User-Agent: Mozilla/5.0
> (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko)
> Chrome/49.0.2623.110 Safari/537.36[\r][\n]"
> [2016-04-10 00:48:51,840] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]"
> [2016-04-10 00:48:51,840] DEBUG - wire >> "Origin:
> chrome-extension://mkhojklkhkdaghjjfdnphfphiaiohkef[\r][\n]"
> [2016-04-10 00:48:51,840] DEBUG - wire >> "Accept: */*[\r][\n]"
> [2016-04-10 00:48:51,840] DEBUG - wire >> "Accept-Encoding: gzip,
> deflate[\r][\n]"
> [2016-04-10 00:48:51,840] DEBUG - wire >> "Accept-Language:
> en-US,en;q=0.8[\r][\n]"
> [2016-04-10 00:48:51,840] DEBUG - wire >> "Cookie:
> _js_datr=gKYAV5aKWlsDZ_YtuCr_q50T[\r][\n]"
> [2016-04-10 00:48:51,840] DEBUG - wire >> "[\r][\n]"
> [2016-04-10 00:48:51,888]  INFO - TimeoutHandler This engine will expire
> all callbacks after : 120 seconds, irrespective of the timeout action,
> after the specified or optional timeout
> [2016-04-10 00:48:51,986] DEBUG - wire << "POST /test HTTP/1.1[\r][\n]"
> [2016-04-10 00:48:51,986] DEBUG - wire << "Cookie:
> _js_datr=gKYAV5aKWlsDZ_YtuCr_q50T[\r][\n]"
> [2016-04-10 00:48:51,986] DEBUG - wire << "Origin:
> chrome-extension://mkhojklkhkdaghjjfdnphfphiaiohkef[\r][\n]"
> [2016-04-10 00:48:51,986] DEBUG - wire << "Accept: */*[\r][\n]"
> [2016-04-10 00:48:51,986] DEBUG - wire << "Cache-Control: no-cache[\r][\n]"
> [2016-04-10 00:48:51,986] DEBUG - wire << "Accept-Encoding: gzip,
> deflate[\r][\n]"
> [2016-04-10 00:48:51,987] DEBUG - wire << "Accept-Language:
> en-US,en;q=0.8[\r][\n]"
> [2016-04-10 00:48:51,987] DEBUG - wire << "Content-Type:
> application/x-www-form-urlencoded; charset=UTF-8[\r][\n]"
> [2016-04-10 00:48:51,987] DEBUG - wire << "Transfer-Encoding:
> chunked[\r][\n]"
> [2016-04-10 00:48:51,987] DEBUG - wire << "Host: demo4010703.mockable.io:80
> [\r][\n]"
> [2016-04-10 00:48:51,987] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
> [2016-04-10 00:48:51,987] DEBUG - wire << "User-Agent:
> Synapse-PT-HttpComponents-NIO[\r][\n]"
> [2016-04-10 00:48:51,987] DEBUG - wire << "[\r][\n]"
> [2016-04-10 00:48:51,987] DEBUG - wire << "0[\r][\n]"
> [2016-04-10 00:48:51,987] DEBUG - wire << "[\r][\n]"
> [2016-04-10 00:48:52,318] DEBUG - wire >> "HTTP/1.1 202 Accepted[\r][\n]"
> [2016-04-10 00:48:52,318] DEBUG - wire >> "Content-Type: application/xml;
> charset=UTF-8[\r][\n]"
> [2016-04-10 00:48:52,318] DEBUG - wire >> "access-control-allow-origin:
> *[\r][\n]"
> [2016-04-10 00:48:52,318] DEBUG - wire >> "Date: Sat, 09 Apr 2016 19:18:52
> GMT[\r][\n]"
> [2016-04-10 00:48:52,318] DEBUG - wire >> "Server: Google Frontend[\r][\n]"
> [2016-04-10 00:48:52,319] DEBUG - wire >> "Content-Length: 11[\r][\n]"
> [2016-04-10 00:48:52,319] DEBUG - wire >> "[\r][\n]"
> [2016-04-10 00:48:52,319] DEBUG - wire >> "test"
> [2016-04-10 00:48:52,329] DEBUG - wire << "HTTP/1.1 202 Accepted[\r][\n]"
> [2016-04-10 00:48:52,329] DEBUG - wire << "access-control-allow-origin:
> *[\r][\n]"
> [2016-04-10 00:48:52,329] DEBUG - wire << "Content-Type: application/xml;
> charset=UTF-8[\r][\n]"
> [2016-04-10 00:48:52,329] DEBUG - wire << "Date: Sat, 09 Apr 2016 19:18:52
> GMT[\r][\n]"
> [2016-04-10 00:48:52,329] DEBUG - wire << "Transfer-Encoding:
> chunked[\r][\n]"
> [2016-04-10 00:48:52,329] DEBUG - wire << "Connection: keep-alive[\r][\n]"
> [2016-04-10 00:48:52,329] DEBUG - wire << "[\r][\n]"
> [2016-04-10 00:48:52,330] DEBUG - wire << "b[\r][\n]"
> [2016-04-10 00:48:52,330] DEBUG - wire << "test[\r][\n]"
> [2016-04-10 00:48:52,330] DEBUG - wire << "0[\r][\n]"
> [2016-04-10 00:48:52,330] DEBUG - wire << "[\r][\n]"
>
> Thanks
>
> On Sat, Apr 9, 2016 at 9:36 PM, Niranjan Karunanandham 
> wrote:
>
>> Hi ESB Team,
>>
>> In ESB 4.9.0, the call mediator is not sending the response body to the
>> client when the backend sends a 202 response with body. The wirelogs are
>> available [1]. Is this a known bug?
>>
>> [1] -
>> [2016-04-08 10:52:41,048] DEBUG - wire 

Re: [Dev] Call mediator does not return the body for 202 response

2016-04-10 Thread Prabath Ariyarathna
Hi Niranjan.

I think this only happens when you have content aware mediators in your
sequence(You can check with removing full log mediators). Inside the
RelayUtils we are checking status code equal to the 202[1] and ignore build
the response body. So reason could be this. You can debug the RelayUtils to
confirm the behavior.

[1]
https://github.com/wso2/wso2-synapse/blob/Apache-Synapse-2.1.3-wso2v11/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/util/RelayUtils.java#L92-L96

Thanks.

On Sun, Apr 10, 2016 at 3:04 AM, Niranjan Karunanandham 
wrote:

> Hi Prabath,
>
> With the backend you have provided it works. I tested it with a backend
> where the response header has Transfer-Encoding has chunked. I mocked the
> backend in another ESB instance. I have attached attached both the proxy
> services where proxy test4 (ESB instance with offset 0) calls MyMockProxy
> (in another ESB instance with offset 1).
>
> Regards,
> Nira
>
>
> On Sun, Apr 10, 2016 at 12:51 AM, Prabath Ariyarathna 
> wrote:
>
>> Hi Niranjan.
>>
>> Hope you talking about call mediator non-blocking mode. I have checked
>> the attached configuration with the ESB 4.9.0 and got the correct response
>> to the client side. Please check with the attached configuration.
>>
>> [2016-04-10 00:48:51,839] DEBUG - wire >> "POST /services/Pass202
>> HTTP/1.1[\r][\n]"
>> [2016-04-10 00:48:51,839] DEBUG - wire >> "Host:
>> wso2s-macbook-pro-2.local:8280[\r][\n]"
>> [2016-04-10 00:48:51,839] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
>> [2016-04-10 00:48:51,839] DEBUG - wire >> "Content-Length: 0[\r][\n]"
>> [2016-04-10 00:48:51,840] DEBUG - wire >> "User-Agent: Mozilla/5.0
>> (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko)
>> Chrome/49.0.2623.110 Safari/537.36[\r][\n]"
>> [2016-04-10 00:48:51,840] DEBUG - wire >> "Cache-Control:
>> no-cache[\r][\n]"
>> [2016-04-10 00:48:51,840] DEBUG - wire >> "Origin:
>> chrome-extension://mkhojklkhkdaghjjfdnphfphiaiohkef[\r][\n]"
>> [2016-04-10 00:48:51,840] DEBUG - wire >> "Accept: */*[\r][\n]"
>> [2016-04-10 00:48:51,840] DEBUG - wire >> "Accept-Encoding: gzip,
>> deflate[\r][\n]"
>> [2016-04-10 00:48:51,840] DEBUG - wire >> "Accept-Language:
>> en-US,en;q=0.8[\r][\n]"
>> [2016-04-10 00:48:51,840] DEBUG - wire >> "Cookie:
>> _js_datr=gKYAV5aKWlsDZ_YtuCr_q50T[\r][\n]"
>> [2016-04-10 00:48:51,840] DEBUG - wire >> "[\r][\n]"
>> [2016-04-10 00:48:51,888]  INFO - TimeoutHandler This engine will expire
>> all callbacks after : 120 seconds, irrespective of the timeout action,
>> after the specified or optional timeout
>> [2016-04-10 00:48:51,986] DEBUG - wire << "POST /test HTTP/1.1[\r][\n]"
>> [2016-04-10 00:48:51,986] DEBUG - wire << "Cookie:
>> _js_datr=gKYAV5aKWlsDZ_YtuCr_q50T[\r][\n]"
>> [2016-04-10 00:48:51,986] DEBUG - wire << "Origin:
>> chrome-extension://mkhojklkhkdaghjjfdnphfphiaiohkef[\r][\n]"
>> [2016-04-10 00:48:51,986] DEBUG - wire << "Accept: */*[\r][\n]"
>> [2016-04-10 00:48:51,986] DEBUG - wire << "Cache-Control:
>> no-cache[\r][\n]"
>> [2016-04-10 00:48:51,986] DEBUG - wire << "Accept-Encoding: gzip,
>> deflate[\r][\n]"
>> [2016-04-10 00:48:51,987] DEBUG - wire << "Accept-Language:
>> en-US,en;q=0.8[\r][\n]"
>> [2016-04-10 00:48:51,987] DEBUG - wire << "Content-Type:
>> application/x-www-form-urlencoded; charset=UTF-8[\r][\n]"
>> [2016-04-10 00:48:51,987] DEBUG - wire << "Transfer-Encoding:
>> chunked[\r][\n]"
>> [2016-04-10 00:48:51,987] DEBUG - wire << "Host:
>> demo4010703.mockable.io:80[\r][\n]"
>> [2016-04-10 00:48:51,987] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
>> [2016-04-10 00:48:51,987] DEBUG - wire << "User-Agent:
>> Synapse-PT-HttpComponents-NIO[\r][\n]"
>> [2016-04-10 00:48:51,987] DEBUG - wire << "[\r][\n]"
>> [2016-04-10 00:48:51,987] DEBUG - wire << "0[\r][\n]"
>> [2016-04-10 00:48:51,987] DEBUG - wire << "[\r][\n]"
>> [2016-04-10 00:48:52,318] DEBUG - wire >> "HTTP/1.1 202 Accepted[\r][\n]"
>> [2016-04-10 00:48:52,318] DEBUG - wire >> "Content-Type: application/xml;
>> charset=UTF-8[\r][\n]"
>> [2016-04-10 00:48:52,318] DEBUG - wire >> "access-control-allow-origin:
>> *[\r][\n]"
>> [2016-04-10 00:48:52,318] DEBUG - wire >> "Date: Sat, 09 Apr 2016
>> 19:18:52 GMT[\r][\n]"
>> [2016-04-10 00:48:52,318] DEBUG - wire >> "Server: Google
>> Frontend[\r][\n]"
>> [2016-04-10 00:48:52,319] DEBUG - wire >> "Content-Length: 11[\r][\n]"
>> [2016-04-10 00:48:52,319] DEBUG - wire >> "[\r][\n]"
>> [2016-04-10 00:48:52,319] DEBUG - wire >> "test"
>> [2016-04-10 00:48:52,329] DEBUG - wire << "HTTP/1.1 202 Accepted[\r][\n]"
>> [2016-04-10 00:48:52,329] DEBUG - wire << "access-control-allow-origin:
>> *[\r][\n]"
>> [2016-04-10 00:48:52,329] DEBUG - wire << "Content-Type: application/xml;
>> charset=UTF-8[\r][\n]"
>> [2016-04-10 00:48:52,329] DEBUG - wire << "Date: Sat, 09 Apr 2016
>> 19:18:52 GMT[\r][\n]"
>> [2016-04-10 00:48:52,329] DEBUG - wire << "Transfer-Encoding:
>> chunked[\r][\n]"
>>