I *think* this might be a known bug in the version of Ruby you are using:
http://redmine.ruby-lang.org/issues/show/2708
Please verify whether you are using a version of Ruby that is affected
by this bug report and try to reproduce using only the HTTP Ruby
libraries (i.e. eliminating Twitter4R from the dependency mix).
Let me know if you see any differences in behavior on other versions of Ruby?
HTH,
Susan
> --
> You received this message because you are subscribed to the Google Groups "twitter4r-users" group.
> To post to this group, send email to twitter...@googlegroups.com.
> To unsubscribe from this group, send email to twitter4r-use...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/twitter4r-users?hl=en.
>
>
--
mailto:m...@susanpotter.net
twitter:@SusanPotter
github:mbbx6spp
blog:http://geek.susanpotter.net
linkedin:http://www.linkedin.com/in/susanpotter
Right you are, Susan!
I am seeing this behavior on my Ubuntu 10.04 system, which has Ruby 1.8.7. Interestingly, on my iMac, which a slightly different version of 1.8.7, I do not see the behavior.
I applied the suggested (one line) patch to http.rb on my Ubuntu system, and that seems to fix the issue. (Well, it makes the example code in that bug report behave as expected at any rate.)
Thanks!
- -Mark
- --
Mark H. Granoff
ma...@granoff.net
http://www.granoff.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
iQEcBAEBAgAGBQJMkmycAAoJEGTG72LTBYINv2cH/iXtKqvxBzTjJMtRU1smhD5l
dFnUtdee5PqTQP4B4J6PZGpnaxrqZqqm+h0Pqh5IRThijcmr9bPEh1EjnFpCDnrc
A0n/6b07BAelh+/qpH5kUMLnjCOWmlAsVLFY3Z3xoFPFCHHfDFL52XSPmhXw80dY
sBlZZP5NkL1TXIDHBCELXEHIYIndrLpZsYV5tF89e8iRJxdKz0Wzd9hySdIvFzb5
xjHv47n/oPUBrMSxbHejV3EFXT11FzpoKMXXwpwOmQB0autvYl4FXVERXpJVVEYd
3/pPm2X+uWiAw4P7uZuWElCPk2ErF3srGBASC19vc0OnSPIkpv2Wq69e3GPgIjM=
=bjTt
-----END PGP SIGNATURE-----
Now when I moved Twitter4R's underlying client connection from the raw
Net::HTTP to the OAuth::Consumer I didn't see a convenient way to set
the read/receive timeout in that library, but I just noticed that
there is a way to access the Net::HTTP from the OAuth::Consumer, so
what I could do in v0.5.3 (ETA over this weekend) is allow you to use
the old Twitter::Configuration#timeout= method to set a higher timeout
and work around this problem.
If you need a solution now (due to production issues) it might look
something like the following (note:it is a total hack though):
http://gist.github.com/583075
(I haven't tested this, so there might be syntax issues, please let me
know if you have difficulties using the code above).
HTH,
Susan
> For more options, visit this group at http://groups.google.com/group/twitter4r-users?hl=en.