Commit 372b7436 authored by Daniel Gerhardt's avatar Daniel Gerhardt

Merge branch 'fix-connection-leak' into 'master'

Fix HTTP connection leak by database index creation

See merge request arsnova/arsnova-backend!178
parents 06dd2225 5eb64550
......@@ -318,7 +318,8 @@ public class MangoCouchDbConnector extends StdCouchDbConnector {
} catch (final JsonProcessingException e) {
throw new DbAccessException(e);
}
restTemplate.postUncached(dbURI.append("_index").toString(), queryString);
final HttpResponse response = restTemplate.postUncached(dbURI.append("_index").toString(), queryString);
response.releaseConnection();
}
public void createJsonIndex(final String name, final List<MangoQuery.Sort> fields) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment