Ruwan,
I never saw "Premature EOF" errors but I sometimes got "Connection
refused" exceptions. This reason is that when
HttpCoreNIOListener#start returns, the listener is not necessarily
ready to accept requests. The unit tests therefore had to wait for the
listener to become fully initialized. I changed the behavior of the
start method so that when it returns it is guaranteed that the
listener is ready to accept requests. This should make the behavior of
the unit tests more predictable. Also since they no longer require
calls to Thread.sleep, they will execute much faster.
Can you check whether this change also solves your problem?
Andreas
On 24 juin 08, at 06:39, Ruwan Linton wrote:
Hi devs,
I encountered an inconsistent behavior with the
HttpCoreNIOListenerTest. Some times these tests are failing saying
"Premature EOF", but this is not consistent. Some times it passes
and some times it is failing..
Any idea on this?
Thanks,
Ruwan
--
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]