ruby / ruby/net-telnet

Getting error `waitfor': timed out while waiting for more data (Net::ReadTimeout)

Open
#2 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.