vbmithr / ocaml-websocket

Websocket library for OCaml
ISC License
162 stars 44 forks source link

Use read_exactly #64

Closed copy closed 8 years ago

copy commented 8 years ago

I've seen the failure "could not read mask", when the client was just bit slow (the result length wasn't 0, so the connection wasn't closed). This fixes the issue by using read_exactly.