I'm starting an embedded Jetty Server and using SelectChannelConnector for this. For legacy reasons I have to use Jetty 6.
I'm unable to correctly simulate a connection close from the Server's end. On setting the connector.setMaxIdleTime to a very low value of around 20 ms, it still doesn't fail .
On the client side I'm reading a stream of data from the Jetty Server.
Note If I set the setMaxIdleTime value to around 10ms. The connection is correctly closed and I get an "unexpected EOF from the Server", but this happens when The client side is parsing http headers. What I want to do is simulate the same behavior when I'm reading the actual content.