Network Programming in Elixir and Erlang (B1.0): Test fails (p25)

@whatyouhide

Test that is in page 25 fails. The name of the test is: handles fragmented data.
Elixir version: 1.17.2 (compiled with Erlang/OTP 27)

I could not get the single call to :gen_tcp.recv/3 to pull in all the data from the two :gen_tcp.send/2 calls as written. I consequently wrapped the :gen_tcp.recv/3 in a recursive call and subsequently was able to get the test to pass as written.

I"m getting the same test failure when using the active: :once mode. But the test is not deterministic, sometimes it succeeded, sometimes fails