# Setting the proxy address

**URL:** <https://www.ruby-forum.com/t/setting-the-proxy-address/91433>\
**Category:** Ruby\
**Created:** [April 9, 2007, 4:20am UTC](https://www.ruby-forum.com/t/setting-the-proxy-address/91433 "2007-04-09T04:20:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javin\_Y](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ba0ec/32.png) [@Javin\_Y](https://www.ruby-forum.com/u/Javin_Y)\
**Post date:** [April 9, 2007, 4:20am UTC](https://www.ruby-forum.com/t/setting-the-proxy-address/91433/1 "2007-04-09T04:20:11Z")

</div>

Hi guys,

I have been getting the following errors when accessing the admin page  
which i think is related to proxy as my office is behide a proxy server.  
when i disabled the rss feed codes on tickets\_controller.rb, it managed  
show the admin login page. So how do I set the proxy server? I looked at  
net/http.rb but to no avail to how it works ☹

Thks in advance guys!  
any help is greatly appreciated!

Errno::EBADF in Admin/ticketsController#list\_pending  
Bad file descriptor - connect(2)  
RAILS\_ROOT: ./script/…/config/…

Application Trace | Framework Trace | Full Trace  
c:/Ruby/lib/ruby/1.8/net/http.rb:560:in `initialize' c:/Ruby/lib/ruby/1.8/net/http.rb:560:in`open’  
c:/Ruby/lib/ruby/1.8/net/http.rb:560:in `connect' c:/Ruby/lib/ruby/1.8/timeout.rb:48:in`timeout’  
c:/Ruby/lib/ruby/1.8/timeout.rb:76:in `timeout' c:/Ruby/lib/ruby/1.8/net/http.rb:560:in`connect’  
c:/Ruby/lib/ruby/1.8/net/http.rb:553:in `do_start' c:/Ruby/lib/ruby/1.8/net/http.rb:542:in`start’  
c:/Ruby/lib/ruby/1.8/net/http.rb:1032:in `request' c:/Ruby/lib/ruby/1.8/net/http.rb:769:in`get’  
c:/Ruby/lib/ruby/gems/1.8/gems/feedtools-0.2.26/lib/feed\_tools/helpers/retrieval\_helper.rb:136:in  
`send' c:/Ruby/lib/ruby/gems/1.8/gems/feedtools-0.2.26/lib/feed_tools/helpers/retrieval_helper.rb:136:in`http\_request’  
c:/Ruby/lib/ruby/gems/1.8/gems/feedtools-0.2.26/lib/feed\_tools/helpers/retrieval\_helper.rb:222:in  
`http_get' c:/Ruby/lib/ruby/gems/1.8/gems/feedtools-0.2.26/lib/feed_tools/feed.rb:238:in`load\_remote\_feed!’  
c:/Ruby/lib/ruby/gems/1.8/gems/feedtools-0.2.26/lib/feed\_tools/feed.rb:125:in  
`update!' c:/Ruby/lib/ruby/gems/1.8/gems/feedtools-0.2.26/lib/feed_tools/feed.rb:80:in`open’  
#{RAILS\_ROOT}/app/controllers/admin/tickets\_controller.rb:158:in  
`load\_blog\_feed’

---

<div class="post-metadata">

**Author:** ![Javin\_Y](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ba0ec/32.png) [@Javin\_Y](https://www.ruby-forum.com/u/Javin_Y)\
**Post date:** [April 9, 2007, 11:28am UTC](https://www.ruby-forum.com/t/setting-the-proxy-address/91433/2 "2007-04-09T11:28:20Z")

</div>

On 4/9/07, Javin Y. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Errno::EBADF in Admin/ticketsController#list\_pending  
> Bad file descriptor - connect(2)  
> RAILS\_ROOT: ./script/…/config/…

Might be a windows issue. Google for “ruby rails bad file descriptor”.  
Some hits:

[http://thefigtrees.net/lee/blog/2005/12/ruby\_on\_rails\_activesupport\_an.html](http://thefigtrees.net/lee/blog/2005/12/ruby_on_rails_activesupport_an.html)  
[http://www.ruby-forum.com/topic/103173](http://www.ruby-forum.com/topic/103173)
