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
Hello, I am using the gen_smtp to receive e-mail messages from Hikvision DVR and it's returning {:send_error, :closed} messages, but before this, I am receiving some weird other commands, see the image below
I have activated older versions of tls, but I don't know what I am doing wrong. I am using the tcp procotol, and STARTTLS.
Could you guys help me?
The text was updated successfully, but these errors were encountered:
igormq
changed the title
Send error receiving from Hikvision DVR
Send error receiving e-mail from Hikvision DVR
Mar 28, 2021
gen_smtp_server_session sends 221 Bye whenever it receives a QUIT (code here), the problem is that most clients (gen_smtp_client included) close the TCP socket as soon as they send the QUIT message (gen_smtp_client exampe) and with that, there is a chance that the socket will be already closed and since any error on Transport:sendwill make the session throw, it generates this error.
My suggestion would be to set the state to have something that informs that we are "quitting" so send doesn't throw in case of a Transport:send error.
If you think this makes sense, I can try to write a PR that does that.
Hello, I am using the gen_smtp to receive e-mail messages from Hikvision DVR and it's returning
{:send_error, :closed}
messages, but before this, I am receiving some weird other commands, see the image belowI have activated older versions of tls, but I don't know what I am doing wrong. I am using the tcp procotol, and STARTTLS.
Could you guys help me?
The text was updated successfully, but these errors were encountered: