waku-org / nwaku

Waku node and protocol.
Other
201 stars 53 forks source link

bug: incomplete data sent or received log appearing when WSS is enabled #2245

Open gabrielmer opened 12 months ago

gabrielmer commented 12 months ago

Problem

After enabling secure websockets on a nwaku node, the following log is appearing constantly:

DBG 2023-11-24 06:07:38.007+00:00 AsyncStream Error                          topics="libp2p wstransport" tid=1 file=wstransport.nim:276 exc="Incomplete data sent or received"

Acceptance Criteria

WSS data should be transmited properly

gabrielmer commented 12 months ago

Weekly Update

gabrielmer commented 11 months ago

Weekly Update

gabrielmer commented 10 months ago

@chaitanyaprem is this issue still happening in your node?

chaitanyaprem commented 10 months ago

@chaitanyaprem is this issue still happening in your node?

Yes, i still see it

gabrielmer commented 10 months ago

After doing some test runs with custom images, found that the exception is being raised in https://github.com/status-im/nim-libp2p/blob/2725be64bacb46997c0959560d833ff946c8cb3b/libp2p/transports/wstransport.nim#L260

Which corresponds to the following proc: https://github.com/status-im/nim-websock/blob/475ad35c89b0c6e63d8fda556c108a02b5f5e447/websock/http/server.nim#L188-L224

Still need to investigate further

gabrielmer commented 9 months ago

Added debug logs for test runs in the following draft PR: https://github.com/waku-org/nwaku/pull/2361