HTTP persistent connection don't reconnect to bitcoind if server dies/re...

If bitcoind dies/restarts - library fails to reconnect.
I understand that it breaks advantage of persistent connection. But in my case this is the only way to go (in eloipool).