Minor Set timeout in view all steps request
authorValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Wed, 3 Aug 2016 15:58:12 +0000 (18:58 +0300)
committerValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Wed, 3 Aug 2016 15:58:55 +0000 (18:58 +0300)
python/educational-core/student/src/com/jetbrains/edu/learning/stepic/EduAdaptiveStepicConnector.java

index 6ba3d2169a91b7007731ebb03547f864d2989967..29f2ddebacaece0f8b286ed46f2fc274403beea8 100644 (file)
@@ -180,6 +180,7 @@ public class EduAdaptiveStepicConnector {
         final StepicWrappers.ViewsWrapper viewsWrapper = new StepicWrappers.ViewsWrapper(assignment.id, assignment.step);
         post.setEntity(new StringEntity(new Gson().toJson(viewsWrapper)));
         setHeaders(post, EduStepicNames.CONTENT_TYPE_APPL_JSON);
+        setTimeout(post);
         final CloseableHttpResponse viewPostResult = client.execute(post);
         if (viewPostResult.getStatusLine().getStatusCode() != HttpStatus.SC_CREATED) {
           LOG.warn("Error while Views post, code: " + viewPostResult.getStatusLine().getStatusCode());