I think I have found the problem. Nginx automatically closes the idle connection every 60 seconds. After adding a thread to send ping messages, the problem of continuous reconnection on snort has been solved. Please see if the problem of go-nostr stall has also been solved?

Reply to this note

Please Login to reply.

Discussion

Great! Will try.

See some "Handshake failed due to invalid Upgrade header: null" error logs, is it possible that they are from go-nostr?

In my short looking, gorilla/websocket set websocket for Upgrade header always.

https://void.cat/d/JfajFWNvxR1BuvP51Z25DQ.webp

Thank you. Then it maybe comes from other clients. I suddenly saw many of this. It‘s weird.

AFAICS, it works fine for me. Thank you.

Does go-nostr still show up other errors now, I see these in the log, not sure where they come from

https://void.cat/d/L6kue8grZFDwS2UpECBNRT.webp