Andrew, That timeout is on the client side which has nothing to do with the Jetty server side. You can set the receive timeout for the client with:
Client client = ClientProxy.getClient(port); HTTPConduit http = (HTTPConduit) client.getConduit(); HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy(); httpClientPolicy.setReceiveTimeout(60000); //-1 would be indefinite) http.setClient(httpClientPolicy); On Tuesday 28 October 2008 2:18:57 pm Andrew Clegg wrote: > Evening all, > > I've set up my services to do embedded Endpoint testing as described > in Glen's article here: > > http://www.jroller.com/gmazza/entry/writing_junit_test_cases_for#testep > > This uses Jetty behind the scenes. > > However it seems to have a 1min timeout, as if a service takes more > than 60 seconds to complete, I get a > > SocketTimeoutException: Read timed out > > while reading the HTTP response. Therefore my test success depends on > database and network load, which isn't good. > > Does anybody know how to increase this? I don't even know how to > access the embedded Jetty instance from my code, since my own classes > aren't actually aware of its existence. > > Thanks! > > Andrew. -- Daniel Kulp [EMAIL PROTECTED] http://dankulp.com/blog
