as John were testing Metacat on postgres, he discovered that Connection needs more precise check whether it is open because of db timing outs. So used to be: if ( conn null ) { get new connection from db; } Now changed to: if ( conn null || conn.isClosed() ) { get new connection from db; } Hope this will solve the problems with errors as: Connection reset by peer, etc.
as John were testing Metacat on postgres,
he discovered that Connection needs more precise check
whether it is open because of db timing outs.
So used to be:
if ( conn null ) { get new connection from db; }
Now changed to:
if ( conn null || conn.isClosed() ) { get new connection from db; }
Hope this will solve the problems with errors as:
Connection reset by peer, etc.