lib icon indicating copy to clipboard operation
lib copied to clipboard

Only one websocket frame is handled if multiple frames are received in single recv()

Open nem0 opened this issue 6 years ago • 0 comments

Steps to reproduce:

  1. open (with correct IP and port) chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:8888/backend in Chrome, it sends multiple websocket frames in a row
  2. wby_socket_recv receives data for all frames in a single call (e.g. 421 bytes in my case)
  3. ws_frame callback in wby_update_connection is called only for the first frame (e.g. 47 bytes in my case)
  4. other frames are ignored

Expected result: ws_frame callback should be called for all received websocket frames

Note: Win8

nem0 avatar Feb 21 '19 14:02 nem0