# Authorized.net-Bad file descriptor - connect(2)

**URL:** <https://www.ruby-forum.com/t/authorized-net-bad-file-descriptor-connect-2/111965>\
**Category:** Deployment\
**Created:** [August 13, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/authorized-net-bad-file-descriptor-connect-2/111965 "2007-08-13T22:42:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksantoshp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/4af34b/32.png) [@ksantoshp](https://www.ruby-forum.com/u/ksantoshp)\
**Post date:** [August 13, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/authorized-net-bad-file-descriptor-connect-2/111965/1 "2007-08-13T22:42:53Z")

</div>

Hello,

I have developed a e-commerce application for magazine purchase/  
subscription, (development environment)

Payment Gateway- [Authorized.net](http://Authorized.net)

I am using the “payment” gem for processing payments.

I have no issues while processing the payment while working at home,  
but when i try to process payments,I get the “Bad file descriptor -  
connect(2)” error, is it because i am behind the corporate firewall,  
its giving me error.

Following is my configuration

1. MySql, ruby, lighttpd (mod\_scgi) are all hosted on the same Windows  
machine.

2. Opened port 443 on the firewall for https post.

While searching for a possible solution, the answers got were either its  
due to same ports assigned or file has only write property.

I have no clue what is wrong and have been working on this situation  
ever since, please let me know your suggestions.

Best Regards,  
Santosh Kumar M
