Closed subzey closed 9 years ago
@subzey Thanks for the report. This kind of issue are very difficult to reproduce locally. Can we work together to solve it? If yes, contact me on private. In the mean time I will check what are the differences on the two tags that may cause this problem. Can you send me the exact commits that have good and bad result?
Fixed on 47ec083e0079d3eb9a96b52d9f58e8f54e2e8e3d
Many thanks!
Push stream randomly sends random garbage after updating from 0.4.1-rc to 0.5.1 to a client connected by event source.
Here's what I've seen in wireshark:
Hex dump for your convenience:
0xA4
The hexdump:
I'm pretty sure we're not sending a
0xA4
chunk, as the message body is generated with LUA's cjson module (ngx.request.capture_multi
is used). While debugging I was JSON-decoding any message right before it is sent to push stream and got no errors — looks like LUA part is okay.Another nuance that may help to isolate the issue. We're using 4 nginx machines in prod, and each public message is sent to each instance. If we send 1000 messages, all 1000 arrives to the client safe and sound, and garbled messages are spread in between with no apparent pattern.
In other words, those garbage messages (most probably) aren't corrupted messages we sent. They just came out of nowhere.