Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Debugging a TCPSocket.open timeout

Reply
Thread Tools

Debugging a TCPSocket.open timeout

 
 
Student Jr
Guest
Posts: n/a
 
      05-20-2008
I'm trying to do an IMAP connection. My first target is gmail:

Net::IMAP.new("imap.gmail.com", 143)

goes walkabout on line 886:

TCPSocket.open("imap.gmail.com", 143)

AT&T swears they are not port blocking. My system logs are clean.

The code for TCPSocket is compiled in, so inserting printfs is going to
be really painful. Moreover, the actual error is probably a ways down
the stack.

Ideas?
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Joel VanderWerf
Guest
Posts: n/a
 
      05-20-2008
Student Jr wrote:
> I'm trying to do an IMAP connection. My first target is gmail:
>
> Net::IMAP.new("imap.gmail.com", 143)
>
> goes walkabout on line 886:
>
> TCPSocket.open("imap.gmail.com", 143)
>
> AT&T swears they are not port blocking. My system logs are clean.
>
> The code for TCPSocket is compiled in, so inserting printfs is going to
> be really painful. Moreover, the actual error is probably a ways down
> the stack.
>
> Ideas?


What about trying netcat? Not sure that will give more info than tcp
open, but if you have to convince someone, it's better than saying "my
ruby program doesn't work".

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

 
Reply With Quote
 
 
 
 
Student Jr
Guest
Posts: n/a
 
      05-20-2008
Joel VanderWerf wrote:
> Student Jr wrote:
>> The code for TCPSocket is compiled in, so inserting printfs is going to
>> be really painful. Moreover, the actual error is probably a ways down
>> the stack.
>>
>> Ideas?

>
> What about trying netcat? Not sure that will give more info than tcp
> open, but if you have to convince someone, it's better than saying "my
> ruby program doesn't work".


sudo nc -v -v imap.gmail.com 143
DNS fwd/rev mismatch: gmail-imap.l.google.com != py-in-f109.google.com
DNS fwd/rev mismatch: gmail-imap.l.google.com != py-in-f111.google.com

I don't know what to expect, so I don't know if this really means
anything or not...
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Phillip Gawlowski
Guest
Posts: n/a
 
      05-20-2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Student Jr wrote:
| I'm trying to do an IMAP connection. My first target is gmail:
|
| Net::IMAP.new("imap.gmail.com", 143)
|
| goes walkabout on line 886:
|
| TCPSocket.open("imap.gmail.com", 143)
|
| AT&T swears they are not port blocking. My system logs are clean.
|
| The code for TCPSocket is compiled in, so inserting printfs is going to
| be really painful. Moreover, the actual error is probably a ways down
| the stack.
|
| Ideas?

Have you followed (well, as much as possible ) the instructions GMail
provides for configuring email clients for IMAP?

When I used Thunderbird on Ubuntu 8.04 to connect to Google's IMAP, I
had no problems.

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com

Write clearly - don't be too clever.
~ - The Elements of Programming Style (Kernighan & Plaugher)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgzIUcACgkQbtAgaoJTgL+99ACdHi40kwAUQk peD2Vh9qknX737
vbkAoIANsiX0JMD0qlB+Nc7pR9xdZmqr
=5ecP
-----END PGP SIGNATURE-----

 
Reply With Quote
 
Student Jr
Guest
Posts: n/a
 
      05-20-2008
Phillip Gawlowski wrote:
>
> Student Jr wrote:
> | I'm trying to do an IMAP connection. My first target is gmail:
> |
> | Net::IMAP.new("imap.gmail.com", 143)
> |
> | goes walkabout on line 886:
> |
> | TCPSocket.open("imap.gmail.com", 143)
> |
> | AT&T swears they are not port blocking. My system logs are clean.
> |
> | The code for TCPSocket is compiled in, so inserting printfs is going to
> | be really painful. Moreover, the actual error is probably a ways down
> | the stack.
> |
> | Ideas?
>
> Have you followed (well, as much as possible ) the instructions GMail
> provides for configuring email clients for IMAP?
>
> When I used Thunderbird on Ubuntu 8.04 to connect to Google's IMAP, I
> had no problems.


> Write clearly - don't be too clever.



Funny what the infamous "one more look" can do. They are using a
different port. This nicely deals with the immediate example
problem--the long timeout on a bad connection is going to have to be
handled via shelling out anyway, I guess.

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Timeout::timeout and Socket timeout Mark Probert Ruby 1 10-06-2004 09:30 AM
Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. Guoqi Zheng ASP .Net 4 06-03-2004 06:39 PM
Session contents lost despite Session.Timeout = 3000; and <sessionState mode="InProc" cookieless="false" timeout="300"> Carpe Diem ASP .Net 3 02-23-2004 07:10 PM
web.config session timeout and forms authentication timeout Do ASP .Net 2 11-23-2003 02:27 PM
Re: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Bob Johnson ASP .Net 0 08-07-2003 12:52 PM



Advertisments