ruby / net-pop

This library provides functionality for retrieving email via POP3, the Post Office Protocol version 3. For details of POP3
BSD 2-Clause "Simplified" License
21 stars 14 forks source link

Replace Timeout.timeout with socket timeout #3

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