Olivine-Labs/Alchemy-Websockets — Issue #16: hybi00 DataFrame: Payload loses data in Append()
Author: David-Chase
Created: 2011-12-20 23:27:37+00:00
State: open

I've got a simple test server running with Alchemy. I can pass data back and forth with Chrome (hybi10) but not with Safari (latest version, w/ hybi00).

Safari connects fine, but when I send data over the socket (Safari to server), it's not in the UserContext by the time it gets to my OnReceive handler.

In the debugger, I've tracked it enough to see the the data come in and get added to the Payload in hybi00.DataFrame.Append, but it "disappears" (Payload count goes from 1 to 0) when I step out of the "if (data.Length > 0)" block...usually. I won't go into all the hoops I've jumped trying to diagnose it; suffice it to say it's one of those "impossible" behaviors that usually ends up being some absolutely obvious oversight (on my part), but I'm stumped.