GUI / lua-resty-mail

A high-level, easy to use, and non-blocking email and SMTP library for OpenResty.
MIT License
66 stars 16 forks source link

too sad ~~~ #1

Closed yuelao025 closed 7 years ago

yuelao025 commented 7 years ago

2017/08/12 16:08:29 [error] 34930#0: *36482 attempt to send data on a closed socket: u:000000000EAB9370, c:0000000000000000, ft:8 eof:0, client: 127.0.0.1, server: _, request: "GET /lib/mail_test HTTP/1.1", host: "localhost"

yuelao025 commented 7 years ago

whatever smtp.com or smtp.qq.com

yuelao025 commented 7 years ago

whatever smtp.163.com or smtp.qq.com

GUI commented 7 years ago

Can you share an example of what code is triggering this error?

GUI commented 7 years ago

Going to go ahead and close this issue, but let me know if you have additional information about this error.

h3ge commented 6 years ago

Had the same issue. smtp.lua tries to call method "sock:settimeouts", which is not available under my setup. smtp.lua:144: attempt to call method 'settimeouts' (a nil value)

I changed the method call to sock:settimeout(options["timeout_send"])

Now everything is working, great work btw!

My setup: I'm using ubuntu 16.04 and the nginx-extras package

edubart commented 6 years ago

The error "attempt to send data on a closed socket" is related to #2

GUI commented 5 years ago

@h3ge: FYI, I've released v1.0.1 which includes compatibility with older ngx_lua versions that lack settimeouts support.