Skip to content

ws stream closed before upgrade #497

@christian3042

Description

@christian3042

This issue is related to #479 After the fix of 0.16.2 the application still sometimes gets stuck. However, the issue occurred probably also before 0.16.2.

The following issue was noticed:

2025-04-08T13:08:12.710241Z DEBUG upgrade_handshake{sid="snkfowfKD3UvA4GF"}: engineioxide::transport::ws: websocket connection upgrade 2025-04-08T13:08:12.719410Z DEBUG engineioxide::transport::polling: [sid=snkfowfKD3UvA4GF] polling request 2025-04-08T13:08:12.719452Z DEBUG engineioxide::transport::polling::payload::encoder: encoding payload with v4 encoder 2025-04-08T13:08:12.719459Z DEBUG engineioxide::transport::polling::payload::encoder: sending packet: None 2025-04-08T13:08:12.728063Z DEBUG upgrade_handshake{sid="snkfowfKD3UvA4GF"}: engineioxide::socket: [sid=snkfowfKD3UvA4GF] sending packet: Noop 2025-04-08T13:08:12.728119Z DEBUG engineioxide::transport::polling::payload::encoder: sending packet: [Noop] 2025-04-08T13:08:12.728130Z DEBUG engineioxide::transport::polling: [sid=snkfowfKD3UvA4GF] sending data: b"6" 2025-04-08T13:08:12.757339Z DEBUG engineioxide::transport::polling: [sid=snkfowfKD3UvA4GF] polling request 2025-04-08T13:08:12.757370Z DEBUG engineioxide::transport::polling::payload::encoder: encoding payload with v4 encoder 2025-04-08T13:08:12.757378Z DEBUG engineioxide::transport::polling::payload::encoder: sending packet: None 2025-04-08T13:08:57.668557Z DEBUG upgrade_handshake{sid="snkfowfKD3UvA4GF"}: engineioxide::transport::ws: ws stream closed before upgrade 2025-04-08T13:08:57.668898Z DEBUG engineioxide::transport::ws: ws closed with error: Upgrade 2025-04-08T13:08:58.918140Z DEBUG on_connect{sid="cfidtrx4k1huLfN5"}: socketioxide::client: eio socket connect 2025-04-08T13:08:58.918171Z DEBUG on_connect{sid="cfidtrx4k1huLfN5"}: socketioxide::client: spawning connect timeout task 2025-04-08T13:08:58.918312Z DEBUG engineioxide::socket: heartbeat sender routine started sid=cfidtrx4k1huLfN5 2025-04-08T13:08:58.919444Z TRACE engineioxide::socket: emitting ping sid=cfidtrx4k1huLfN5 2025-04-08T13:08:58.919464Z TRACE engineioxide::socket: waiting for pong sid=cfidtrx4k1huLfN5 2025-04-08T13:08:58.941519Z DEBUG engineioxide::transport::polling::payload: decoding payload Some("text/plain;charset=UTF-8") 2025-04-08T13:08:58.941556Z DEBUG engineioxide::transport::polling::payload::decoder: decoding payload with v4 decoder

Sometimes the upgrade does not work and it runs into a timeout.
Attached you can find the extended log with the application data removed.

Image
server-logs.txt
client.har.txt

Please let me know, if any additional information is required.

Versions:

  • Socketioxide version: 0.16.2
  • Http lib: axum 0.8.3
  • Socket.io client version 4.8.1

Metadata

Metadata

Assignees

Labels

A-engineioxideArea related to engineioxideC-BugSomething isn't workingP-HighHigh priority

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions