Skip to content

"Connection refused" after getting JSON data 100 times. How to solve? #594

Closed Answered by mobizt
Di0khan asked this question in Q&A
Discussion options

You must be logged in to vote

When the server connection established, the session was kept open for reuse.

Google limits the time to live of opened session for 40 seconds and terminated the connection.

You should call fbdo.clear() to force the session to be closed before 40 seconds after first get function was called.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Di0khan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants