Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/orientechnologies/orientdb
Browse files Browse the repository at this point in the history
… into develop
  • Loading branch information
lvca committed Nov 26, 2013
2 parents e4ca6aa + 1204dbf commit 82dc712
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1809,13 +1809,15 @@ private void removeDeadConnections() {
// FREE DEAD CONNECTIONS
int removedDeadConnections = 0;
for (OChannelBinaryAsynchClient n : new ArrayList<OChannelBinaryAsynchClient>(networkPool)) {
if (n != null && !n.isConnected())
if (n != null && !n.isConnected()) //Fixed issue with removing of network connections though connection is active.
{
try {
n.close();
} catch (Exception e) {
}
networkPool.remove(n);
removedDeadConnections++;
}
}

OLogManager.instance().debug(this, "Found and removed %d dead connections from the network pool", removedDeadConnections);
Expand Down

0 comments on commit 82dc712

Please sign in to comment.