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

com.mangopay.core.RestTool#doRequestList does not set any timeouts #296

Open
raubjan opened this issue Mar 6, 2023 · 0 comments
Open

com.mangopay.core.RestTool#doRequestList does not set any timeouts #296

raubjan opened this issue Mar 6, 2023 · 0 comments

Comments

@raubjan
Copy link

raubjan commented Mar 6, 2023

while com.mangopay.core.RestTool#doRequest does set connection and readtimeout, doRequestList does not. we had the problem that one of our cronjobs to load open events was hanging while trying to read for the first time from the connection (retrieving the response code)

we run with version 2.20.0 but i also checked 2.27.0 but there is the same

see sample

java.base@11.0.16/java.net.SocketInputStream.socketRead0(Native Method)
java.base@11.0.16/java.net.SocketInputStream.socketRead(SocketInputStream.java:115)
java.base@11.0.16/java.net.SocketInputStream.read(SocketInputStream.java:168)
java.base@11.0.16/java.net.SocketInputStream.read(SocketInputStream.java:140)
java.base@11.0.16/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:478)
java.base@11.0.16/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:472)
java.base@11.0.16/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:160)
java.base@11.0.16/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
java.base@11.0.16/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1506)
java.base@11.0.16/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1416)
java.base@11.0.16/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:456)
java.base@11.0.16/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:427)
java.base@11.0.16/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:572)
java.base@11.0.16/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:201)
java.base@11.0.16/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1592)
java.base@11.0.16/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
java.base@11.0.16/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)
java.base@11.0.16/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:334)
com.mangopay.core.RestTool.doRequestList(RestTool.java:589)
com.mangopay.core.RestTool.requestList(RestTool.java:229)
com.mangopay.core.APIs.ApiBase.getList(ApiBase.java:363)
com.mangopay.core.APIs.ApiBase.getList(ApiBase.java:368)
com.mangopay.core.APIs.implementation.EventApiImpl.get(EventApiImpl.java:29) 
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