Looking at the differences between 1.2 and 1.3 it appears that keepalive
connection optimizations were put in place that perhaps caused this
regression. I say regression, because I don't see the infinite loop when
running 1.2 synapse with the simple telnet 8280 test. Also, I did not
see this error in any of my testing until I deployed to a box which was
subject to keepalive processing. I'm definitely no expert in this area,
so this is all just based on anecdotal evidence - I'm just throwing
these observations out there for you to chew on...  

Thanks,
Mike

-----Original Message-----
From: Asankha Perera [mailto:[email protected]] On Behalf Of
Asankha C. Perera
Sent: Friday, September 25, 2009 8:28 PM
To: [email protected]
Subject: Re: HttpCoreNIOListener$1 - System may be unstable: IOReactor
encountered a runtime exception : null

Hi Ruwan / Daniel
> I had a look at the issue and I think Daniels suggestion will work. I
will
> fix this soon on the 1.3 branch.
>
>   
>> The file that contains the error is
>> synapse-nhttp-transport/ServerHandler.java:209
>> int bytesWritten = outBuf.produceContent(encoder);
>> where the outBuf is
>> ContentOutputBuffer outBuf = (ContentOutputBuffer)
>> context.getAttribute(RESPONSE_SOURCE_BUFFER);
>>
>> In this case when the outBuf is null, I think a possible solution to
fix
>> this is to just close the connection.
>> What do you think?
>>     
Could you create a JIRA and attach a log you see? Ensure that it
captures the first time the runtime exception occurs. Is it also
possible to get a tcpdump of the communication that causes this during
normal operation - unless someone is trying to intentionally break
Synapse. Simply closing the connection here would not be the proper
solution - but something that will just cover up something else that
happened. We should use this opportunity to understand why this happens
during normal/abnormal operations and ensure that other possibilities
which may lead to this is also analyzed

cheers
asankha

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com




Reply via email to