Getting error `waitfor': timed out while waiting for more data (Net::ReadTimeout)
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 57
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
I have simple script to send emails using ruby telnet library
here is my code
require 'net/telnet'
localhost = Net::Telnet::new("Host" => "smtp.gmail.com","Timeout" => 10, "Port" => 587, "Waittime" => 20, "
FailEOF" => true )
localhost.cmd("mail from: oneperson@gmail.com"){ |c| print c }
localhost.cmd("rcpt to: oneperson@gmail.com"){ |c| print c }
localhost.close
I got this error 'waitfor' timed out while waiting for more data again and again
why I am getting this error again and again, what's wrong in the code snipet?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided Ruby script and the net/telnet entry point, then reproduce the timeout against smtp.gmail.com on port 587. The issue names no repository files, tests, expected behavior, or specific change, so the completion criteria need clarification before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100