webbit/webbit — Issue #65: First incoming WebSocket message is dropped on the floor
Author: aslakhellesoy
Created: 2012-01-27 11:07:46+00:00
State: open

To reproduce, change `fuzzing_client_spec.json` to only run one test, for example:

```json
"cases": ["1.1.5"],
```

Start the echo server (`make echo`) and run the single autobahn test: `make autobahn`
Look at `reports/index.html` and see that the test failed.

Now, with the echo server still running, run `make autobahn` again. This time it will pass.

This happens with testcase `1.1.1`, `1.1.2`, `1.1.3`, `1.1.4` and `1.1.5` - but *not* with `1.1.6`. (The `1.1.6` testcase passes on the first try).

One thing I tried was to add a `System.out.println("b = " + b);` on line 72 in `HybiWebSocketFrameDecoder`. The first (failing) time only one byte is printed (and the message is not fully read), but for subsequent autobahn invocations two bytes are printed (and the message _is_ fully read).

This is an annoying bug that it would be great to get some help to fix!