Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thread locked #142

Open
m4wayne opened this issue Jan 18, 2018 · 0 comments
Open

thread locked #142

m4wayne opened this issue Jan 18, 2018 · 0 comments

Comments

@m4wayne
Copy link

m4wayne commented Jan 18, 2018

jstack info:
"pool-1-thread-1" #18 prio=5 os_prio=0 tid=0x00007f7c62278000 nid=0x1c runnable [0x00007f7c1a5e4000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:170)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
- locked <0x00000000f80f9f40> (a java.io.BufferedInputStream)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:704)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1569)
- locked <0x00000000f80f03d8> (a sun.net.www.protocol.http.HttpURLConnection)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
- locked <0x00000000f80f03d8> (a sun.net.www.protocol.http.HttpURLConnection)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at com.github.kevinsawicki.http.HttpRequest.code(HttpRequest.java:1560)

code:
HttpRequest.get(url)
.useProxy(proxyHost, proxyPort)
.header("Cookie", cookies)
.followRedirects(true)
.userAgent(userAgent)
.accept("/")
.acceptEncoding("gzip, deflate")
.acceptGzipEncoding().uncompress(true)
.trustAllCerts()
.trustAllHosts()
.connectTimeout(5000)
.readTimeout(10000);
http-request version 6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant