commit | b963d2882af875a5309cdc4b00f93a638f3646d2 | [log] [tgz] |
---|---|---|
author | Mikio Hara <mikioh.mikioh@gmail.com> | Mon Aug 03 19:49:49 2015 +0900 |
committer | Mikio Hara <mikioh.mikioh@gmail.com> | Tue Aug 04 03:35:05 2015 +0000 |
tree | 47d43eb69f02f43a82db50573b99b444b72ac0d3 | |
parent | 84649876d01099f6fe7f9b81182d0b803ccbd612 [diff] |
websocket: handle solicited and unsolicited Ping/Pong frames correctly This change prevents Read from failing with io.EOF, ErrNotImplemented on exchanging control frames such as ping and pong. Fixes golang/go#6377. Fixes golang/go#7825. Fixes golang/go#10156. Change-Id: I600cf493de3671d7e3d11e2e12d32f43928b7bfc Reviewed-on: https://go-review.googlesource.com/13054 Reviewed-by: Andrew Gerrand <adg@golang.org>