mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
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:
parent
f908920992
commit
c6fee110c6
|
@ -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.
BIN
zxingorg/web/WEB-INF/lib/httpcore-4.0.jar
Normal file
BIN
zxingorg/web/WEB-INF/lib/httpcore-4.0.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
zxingorg/web/WEB-INF/lib/httpcore-nio-4.0.jar
Normal file
BIN
zxingorg/web/WEB-INF/lib/httpcore-nio-4.0.jar
Normal file
Binary file not shown.
Loading…
Reference in a new issue