users@grizzly.java.net

Re: GrizzlyWebServer start() method blocks in AJP mode

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Fri, 20 Aug 2010 18:17:03 +0200

Hi Chris,

it is a bug.
I've just fixed it on trunk in the http-ajp module and will be
available in the Grizzly 1.9.20.
Can I ask you to fill the issue?

Thank you.

WBR,
Alexey.

On Aug 20, 2010, at 18:00 , Chris Bailey wrote:

> When in AJP mode, start() method blocks. In this code, stop() is
> never reached.
>
> GrizzlyWebServer ws = new GrizzlyWebServer();
> ws.enableProtocol(GrizzlyWebServer.PROTOCOL.AJP);
> ws.start();
> ws.stop();
>
> In HTTP mode, it all works fine... I double checked the docs and I
> don’t see anything that mentions it should block in AJP mode.
> Furthermore I ran the server in a separate thread, and called stop()
> from the main thread and it still doesn’t shut down the server
> properly. A netstat command shows it is still listening on port 8009.
>
> Is this a bug or an I just making poor assumptions? BTW I am using
> 1.9.18-m modules for NIO, HTTP, Servlet, and AJP.
>
> Regards,
> Chris
>