mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
set read timeout for the ipython notebook starting connection
This commit is contained in:
@@ -166,6 +166,7 @@ public class IpnbConnection {
|
||||
if (urlConnection instanceof HttpURLConnection) {
|
||||
final HttpURLConnection connection = (HttpURLConnection)urlConnection;
|
||||
connection.setRequestMethod(method);
|
||||
connection.setReadTimeout(60000);
|
||||
final BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream(), "utf-8"));
|
||||
try {
|
||||
final StringBuilder builder = new StringBuilder();
|
||||
|
||||
Reference in New Issue
Block a user