Fix websocket timeouts for go versions 1.1 and 1.2.