You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
relaysrv crash after some weeks of operation #9001
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
No unusual action is logged before the crash.
There is no hint in the syslog.
There were around 7000 session handled on the day of the crash.
The crash happened already several times. I've never experienced such a crash with versions before 1.22.1.
Normally strelaysrv consumes <1% of the RAM and there are over 15GB free. If the kernel killed the connection, I think there would be soemthing in syslog, but there is nothing.
I just saw, I ran it with "-network-buffer 3072". Is it possible that the server crashes, when the proxied connections exhaust the network-buffer?
If the crash log isn't different from the normal log, no.
log.Println("Listener failed to accept connection from", conn.RemoteAddr(), ". Possibly a TCP Ping.")
}
continue
}
conn can easily be nil here if the accept call failed for whatever reason, so then we shouldn't try to log the address of the connection we didn't get.
(we return a conn plus an error if the TLS handshake fails, but we can fail already in the accept and then it's a return nil, false, err)
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
[-]relaysrv crah after some weeks of operation[/-][+]relaysrv crash after some weeks of operation[/+]AudriusButkevicius commentedon Jul 25, 2023
Not really obvious what happened. Perhaps something in the kernel killed the connection? The machine wasn't low on ram etc?
Is that all there is in the crash log?
phloggu commentedon Jul 25, 2023
Normally strelaysrv consumes <1% of the RAM and there are over 15GB free. If the kernel killed the connection, I think there would be soemthing in syslog, but there is nothing.
I just saw, I ran it with "-network-buffer 3072". Is it possible that the server crashes, when the proxied connections exhaust the network-buffer?
If the crash log isn't different from the normal log, no.
AudriusButkevicius commentedon Jul 25, 2023
This looks like something randomly become nil, so its not clear why that happened
calmh commentedon Jul 25, 2023
Nah this is a simple bug, present since Forever™ apparently.
syncthing/cmd/strelaysrv/listener.go
Lines 38 to 43 in dc5e10f
conncan easily be nil here if the accept call failed for whatever reason, so then we shouldn't try to log the address of the connection we didn't get.(we return a conn plus an error if the TLS handshake fails, but we can fail already in the accept and then it's a
return nil, false, err)cmd/strelaysrv: Handle accept error with debug set (fixes syncthing#9001
Merge branch 'main' into multicon
Merge branch 'main' into prometheus
cmd/strelaysrv: Handle accept error with debug set (fixes syncthing#9001