ruby / net-smtp

This library provides functionality to send internet mail via SMTP, the Simple Mail Transfer Protocol.
Other
44 stars 30 forks source link

Replace Timeout.timeout with socket timeout #21

Closed mohamedhafez closed 3 years ago

mohamedhafez commented 3 years ago

Timeout.timeout is inefficient since it spins up a new thread for each invocation, use Socket.tcp's connect_timeout option instead

mohamedhafez commented 3 years ago

@hsbt this is analogous to https://github.com/ruby/net-http/pull/10 that you just merged in