Try to resolve CLOSE_WAIT issue on zxing.org

git-svn-id: https://zxing.googlecode.com/svn/trunk@909 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2009-04-15 10:51:14 +00:00
parent f908920992
commit c6fee110c6
5 changed files with 2 additions and 0 deletions

View file

@ -36,6 +36,7 @@ import org.apache.http.HttpMessage;
import org.apache.http.HttpResponse;
import org.apache.http.HttpVersion;
import org.apache.http.client.HttpClient;
import org.apache.http.client.params.HttpClientParams;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.conn.scheme.PlainSocketFactory;
import org.apache.http.conn.scheme.Scheme;
@ -142,6 +143,7 @@ public final class DecodeServlet extends HttpServlet {
}
HttpGet getRequest = new HttpGet(imageURI);
getRequest.addHeader("Connection", "close"); // Avoids CLOSE_WAIT socket issue?
try {
HttpResponse getResponse = client.execute(getRequest);

Binary file not shown.

Binary file not shown.