users@grizzly.java.net

Re: EOFException caused by POST to grizzly SSL web server

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Fri, 07 Aug 2009 11:09:40 +0200

Hi Tom,

interesting...
can you pls. send the grizzly code and instructions how you run curl
(if you don't want to publish sources - you can send them to me
directly).
 From what I see, I can just guess, that curl wants to rerun
handshake... but I'm not sure.

WBR,
Alexey.

On Aug 6, 2009, at 18:06 , Tom Magowan wrote:

> Hi,
>
> I am attempting to POST data using the curl utility to a grizzly SSL
> server (1.9.17-RC2). However, grizzly always throws an EOFException.
> I've included some of the output from my log file below.
>
> Looks like the worker thread is attempting to read from the input
> buffer, after the SSLEngine has been closed?
>
> A non-SSL grizzly server works as expected.
>
> Any help appreciated.
>
> Thanks,
> Tom
>
>
>
> [2009-08-06 16:35:04.863] ttp9999-
> WorkerThread(13)
> grizzly.unknown D after unwrap. engine:
> 3db140e8[SSLEngine[hostname=null port=-1]
> SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA] buffer:
> java.nio.HeapByteBuffer[pos=0 lim=33320 cap=33320] secured:
> java.nio.HeapByteBuffer[pos=0 lim=20480 cap=20480] consumed: 29
> produced: 0 status: CLOSED handshakeStatus: NEED_WRAP
> [2009-08-06 16:35:04.864] ttp9999-
> WorkerThread(13)
> grizzly.unknown V Unblocking keep-alive exception
> java.io.EOFException: Unexpected EOF read on the socket
> at
> com
> .sun
> .grizzly
> .tcp
> .http11
> .InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:390)
> at
> com.sun.grizzly.http.ProcessorTask.parseRequest(ProcessorTask.java:
> 782)
> at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:654)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:
> 911)
> at
> com
> .sun
> .grizzly
> .http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:164)
> at
> com
> .sun
> .grizzly
> .DefaultProtocolChain
> .executeProtocolFilter(DefaultProtocolChain.java:135)
> at
> com
> .sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:
> 102)
> at
> com
> .sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:
> 88)
> at
> com
> .sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> at
> com
> .sun
> .grizzly
> .ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
> at
> com
> .sun
> .grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
> at com.sun.grizzly.NIOContext.execute(NIOContext.java:510)
> at
> com
> .sun
> .grizzly
> .SelectorHandlerRunner.handleSelectedKey(SelectorHandlerRunner.java:
> 357)
> at
> com
> .sun
> .grizzly
> .SelectorHandlerRunner.handleSelectedKeys(SelectorHandlerRunner.java:
> 257)
> at
> com
> .sun
> .grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:
> 194)
> at
> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:
> 129)
> at com.sun.grizzly.util.FixedThreadPool
> $BasicWorker.dowork(FixedThreadPool.java:379)
> at com.sun.grizzly.util.FixedThreadPool
> $BasicWorker.run(FixedThreadPool.java:360)
> at java.lang.Thread.run(Thread.java:619)
>
> [2009-08-06 16:35:04.864] ttp9999-
> WorkerThread(13)
> grizzly.unknown D sun.nio.ch.SelectionKeyImpl_at_3fbebf70 is being
> locally cancelled
>