|
In our world of computer vandals, attackers, denial-of-serviceattacks,
spam, malware and the like, many companies choose to block ICMPfirewall.
messages. Or simply discard unwanted connection requests from a
When
The ICMP protocol is the "error message" protocol of the Internet.
you do something wrong (such as try to connect to a JDBC server on ato
computer that doesn't have one running) the TCP/IP stack is supposed
send an ICMP message saying "connection refused". That tells you that
the computer isn't accepting connections on the given port.a
But people block that message. Or prevent it entirely by configuring
firewall to simply discard the connection request so the computernever
even receives the request (and therefore can't tell you that itfailed)
such
The result is that your program sits and waits for a response to the
request. It sits and sits and sits and waits until a response is
received. If there is no response coming, it will sit indefinitely.
Normally, TCP/IP software has the option to set a "timeout" value to
limit how long it sits and waits. I don't know if Oracle has that
option in their JDBC driver (I don't use Oracle) or if they do have
an option, I don't know what the default value is.
But assuming that the value is either very long, or set to "wait
indefinitely" by default, then it would make perfect sense that using
the wrong IP address would certainly cause the problem you describe.
Incidentally -- coding an IP address instead of a domain name is a
really bad idea. Please consider changing that.
Lim Hock-Chai wrote:
Ok. It appears to cause by wrong ip being put into the url. Which
makes me wonder why it stucks when wrong ip is provided.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.