Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Perl DBI connection timeout on SLES 10 sp4 X86_64

by prashantktyagi (Scribe)
on Sep 14, 2012 at 10:31 UTC ( #993694=perlquestion: print w/ replies, xml ) Need Help??
prashantktyagi has asked for the wisdom of the Perl Monks concerning the following question:

My application create a db connection to sql server using dbi::proxy.
On server runs a proxy service (written in perl with conjuction to dbiproxy.exe) which listen incoming connection and create a socket.


my application is working fine on Redhat Linux( kernel 2.4) but when I run my app on SUSE 10 sp4 x86_64, this is the issue..

here is my apllication dbi script( client) which fails to connect and timeout..
my $sock = new IO::Socket::INET( PeerAddr => $server, PeerPort => 9000, Proto => 'tcp', ); print " error : $!, $@ ";

Gives output ...
error: Illegal seek, error: Connection refused, IO::Socket::INET: Timeout error: Connection refused, IO::Socket::INET: Timeout error: Connection refused, IO::Socket::INET: Timeout error: Illegal seek, IO::Socket::INET: Timeout Illegal seek,error: Illegal seek, IO::Socket::INET: Timeout
I have doubt on IO::Socket::INET module bundled within my application. Is this a module bug or system issue?
Please guide ..

Comment on Perl DBI connection timeout on SLES 10 sp4 X86_64
Select or Download Code
Re: Perl DBI connection timeout on SLES 10 sp4 X86_64
by moritz (Cardinal) on Sep 14, 2012 at 11:23 UTC
    my application is working fine on Redhat Linux( kernel 2.4) but when I run my app on SUSE 10 sp4 x86_64, this is the issue..

    Are the two operating systems on the same machine? with the same IP? I ask because "Connection refused" could mean a firewall or a host filtering rule prevents you from accessing the port in question.

      These OS's are Virtual machines under same host but different IP. I will check about firewall rules.

        Hi all,

        I have checked the firewall setting and network domain. Everything is fine. But still I am not able to create a socket through IO::Socket::INET on Suse machine.

        Please help me to find the cause of this issue.
        Any other way to debug this thing ?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://993694]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-12-17 23:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (40 votes), past polls