Re: Delays and timeouts when telnetting to random open ports?



Hello,

I think you need to look at this at a lower level.

I would check the behaviour is as you expect - run a snoop and check
that you are really not getting a TCP DR to your TCP SYN request which
is what I believe is the network underlying response when you get a
connection refused.

snoop -d qfe0 port 1234

Compare good with bad.

If you are getting no response, then try tracing system calls using
truss on the listener - compare good with bad bahaviour. Look for Err
messages, or log files being written to that you may not have been
aware of - you may find a full queue or the likes, a resourcing issue,
or a name service (dns, nis, ldap) timeout.

basic truss to follow children:

truss -f -p <pid of listener>

or for a log file:

truss -f -o /tmp/logfile -p <pid of listener>

or for really verbose output:

truss -f -wall -o /tmp/logfile -p <pid of listener>

You can also add timestamps to truss (-t a, or -t r I think).

Cheers,
Nick

mkirsch1@xxxxxxxxxxxxxxxx wrote:
I've got a real strange one going on here....

You know what happens when you telnet to an open port on a system,
right? It supposed to come back instantly with "connection refused."
Right?

We've got one odd system that cycles between that "normal" behavior,
and no response at all. In between are several levels of delays.

Again, it seems to be cyclical in nature: For a few seconds, it will
work normally. Then for the next few, the delays will get longer and
longer. Finally, for several minutes, the connection will simply time
out. Lather. Rinse. Repeat. It doesn't matter what port or what
interface you use, including the loopback.

What brought this on was a DBA trying to start up a custom Oracle
listener on port 1526. He's having the same type of problem testing the
startup and shutdown of the listener. If he catches it when things are
working, the listener is okay. However, if he catches it on the down
side of the cycle, the listener times out trying to grab the port.

There's another system that's virtually IDENTICAL to this one, both in
hardware and software, and it does not exhibit this same phenomenon.
showrev -p on both hosts is the same. /etc/resolv.conf is the same.
/etc/nsswitch.conf is the same.

.



Relevant Pages

  • Multiple listeners improve application.
    ... Users observe frequent error of ORA-12535 Operation Timed Out Error. ... The listener was on port 1525. ... CPU, 8 GB RAM ...
    (comp.databases.oracle.server)
  • Re: Veröffentlichung von zwei https Webservern
    ... die Anfrage auf Server 1 oder Server 2 umleiten soll? ... Meiner Meinung nach, kann ich im Listener ... How can I publish multiple SSL sites using the same IP address and port, ... Aber offensichtlich unterstützt das unsere Sonicwall ...
    (microsoft.public.de.german.isaserver)
  • Re: about setting connection to local database from EM DBControl configure program through IPC
    ... It looks like you can reach the listener, ... ports other than the listener port. ... If you enable an Oracle Net Trace (see the Net Services Reference ... Instance "orcl", status READY, has 1 handlerfor this service... ...
    (comp.databases.oracle.server)
  • Re: Win32::Process - Limiting the number of processes launched from within a script
    ... > on the script server. ... I might try writing a listener that I could put ... on every end point that listened on say port 9010 (or some other ... some other port) to handle replies to requests sent to the listener port ...
    (comp.lang.perl.misc)
  • Re: snoop a single process?
    ... >>I would like to snoop for just a particular process, ... >>I have many processes talking to the same destination port. ... just before the packet went out. ... (Both "truss" and "snoop" have ...
    (comp.unix.solaris)