users@grizzly.java.net

GrizzlyWebServer start() method blocks in AJP mode

From: Chris Bailey <cbailey_at_utechsoft.com>
Date: Fri, 20 Aug 2010 12:00:18 -0400

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