brotskydotcom / susen.go

A simple sudoku game.
GNU General Public License v2.0
0 stars 1 forks source link

Detect and try to repair redis connection failures #14

Closed brotskydotcom closed 8 years ago

brotskydotcom commented 8 years ago

Runs on Heroku with Redis To Go at the nano level seem to indicate that redis connections drop without warning, especially after idle. Try to detect and recover from this by prefixing operation clusters with a PING to see if the connection is working, and reopen it if not.

Also improve logging of connection state, and have tests integrate server logging into the test log flow.