-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strangely delayed SMTP-connect (on desktop with main core of 2024-09-18) #5984
Comments
What is the output of I am pretty sure SYN should be retried by the kernel several times, so should not be easily lost. The problem may be in the greeting protocol. SMTP requires that client waits for the banner immediately after connecting which results in problems similar to https://www.evanjones.ca/tcp-stuck-connection-mystery.html If lost banner segment is the case, it should be fixed server-side by enabling Tail Loss Probe to retransmit the banner (which is the last TCP segment sent, hence "tail"). This should be possible to confirm from tcpdump, but I also created a PR to add more logging so we can confirm the failure to read the banner from Delta Chat logs: #5985 |
On Thu, Sep 19, 2024 at 04:57 -0700, link2xt wrote:
What is the output of `sysctl net.ipv4.tcp_syn_retries` on your system?
`net.ipv4.tcp_syn_retries = 6`
|
#5985 is now merged, so |
Another source of delay may be DNS, but in this case the logs say it is a connection timeout and DNS resolution took 0.1 s. |
a roughly commented log and an by now often occuring smtp-sending delay.
/me sending a message on desktop in some chat
there now is a message to be send and the smtp-connection was determined to be stale.
now this takes a long while. On the same computer i can connect to smtp.deltachat.de port 465 fine (via telnet).
But core's attempt seems to go nowhere ...
seems network connectivity was fine for the incoming pipeline during the time smtp was attempted.
the smtp-connection attempt timed out after ~60 seconds, it seems.
now it immediately re-connects and message sending succeeds afterwards immediately.
I don't think that my cable network connection changed. If this log does not help, please let me know what tcpdump or similar
command i should try to provide more info. thanks.
The text was updated successfully, but these errors were encountered: