[xSocket-develop] Running out of connections with HttpClient?
Status: Inactive
Brought to you by:
grro
|
From: Ian S. <is...@ya...> - 2008-04-13 00:06:41
|
I am trying to use only the http client portion of xsocket at first, and it appears I'm running out of connections around 250, presumably because the existing connection isn't being closed properly. Eventually the first batch of requests timeout, and it will do another 250 posts. I can't find a close() or release() method on PostRequest or HttpResponse, so I'm not sure what I should be doing to allow HttpClient to reclaim the request. Here is my code for posting a byte[] as the body, it is very simple. In my simple performance test, I'm trying to call this 10000 times. PostRequest post = new PostRequest(node.getAddress()+"/", new String[0]); post.setBodyDataSource(bytes, null); HttpResponse response = client.call(post); I'm using the default HttpClient: client = new HttpClient(); Thanks, Ian __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |