Terminating Port Connections

Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default Re: Terminating Port Connections

    Thanks for the feedback. It looks like there's not much I can do
    except wait for the connection to close or re-boot the server.

    [email]bishop@speakeasy.net[/email] wrote in message news:<7k2dnZMOktfMjvbd38DK-g@speakeasy.net>...
    > Peter <patonp@yahoo.com> wrote:
    > > tcp 0 0 server1.prog_rpc .1127 FIN_WAIT_2
    > >
    > > How do I terminate this port connection?
    >
    > You wait for it to go away.
    >
    > TCP connections will remain open in a "wait" state for some defined
    > length of time after the connection is closed. This keeps a subsequent
    > network connection from attaching to the same port, and receiving any
    > "stray" packets that were intended for the previous connection (but were
    > not received before the connection closed).
    >
    > -Ed
    Peter Guest

  2. Similar Questions and Discussions

    1. Terminating application
      yup, I think you'll find it's being terminated early - IIS doesn't like to run processes for long because it's an inherently dangerous thing to do....
    2. script not terminating on user abort
      Hi! The connection_* function don't seem to work for me and I can no longer determine when the user has aborted the script. When I close the...
    3. Line terminating after 80 character
      Hi On my unix machine (HP-UX11.11) have some problem to create file more than 80 column. There is a script running and creating some file(s) but...
    4. Applications terminating wireless network
      Hiya, I'm working on setting up a wireless home network, using a Linksys BEFW11S4. I've got a PC up and downstairs, both running XP Pro. The...
    5. Terminating a authenticated user
      Hi, 1. How can I "terminate" an authenticated user? (I would like the server to redirect the user to the login page again. I'm using "forms...
  3. #2

    Default Re: Terminating Port Connections

    Peter <patonp@yahoo.com> wrote:
    > Thanks for the feedback. It looks like there's not much I can do
    > except wait for the connection to close or re-boot the server.
    To ease this problem in the future, there may be a kernel parameter
    that will shorten the time it will take for this to time out.

    Use at your own risk.

    -Ed
    bishop@speakeasy.net Guest

  4. #3

    Default Re: Terminating Port Connections

    [email]bishop@speakeasy.net[/email] wrote:
    > Peter wrote:
    >
    > > It looks like there's not much I can do
    > > except wait for the connection to close or re-boot the server.
    >
    > To ease this problem in the future, there may be a kernel parameter
    > that will shorten the time it will take for this to time out.
    The timeouts in TCP have defaults that assume long latency WAN
    connections. IF your host EXCLUSIVELY has local traffic, then
    tuning the TCP parameters in the kernel will reduce the time a
    closing connection spends in the timeout periods. If your host
    does remote WAN traffic, it will hurt performance across the
    WAN.

    The vast majority of the time, closing connections are purely a
    cosmetic issue. Doing this in the kernel is much like getting
    a vanity nose job from a plastic surgeon. It puts money in
    the surgeon's pocket more than anything else. If you want to
    do this, I'll sign up for receiving money from you to guide you
    through it ;^)
    Doug Freyburger Guest

  5. #4

    Default Re: Terminating Port Connections

    Doug Freyburger <dfreybur@yahoo.com> wrote:
    > The vast majority of the time, closing connections are purely a
    > cosmetic issue. Doing this in the kernel is much like getting
    > a vanity nose job from a plastic surgeon. It puts money in
    > the surgeon's pocket more than anything else. If you want to
    > do this, I'll sign up for receiving money from you to guide you
    > through it ;^)
    Pretty much agreed. Once I did run into a situation where an
    application was using a *lot* of network connections between a couple of
    servers, and it would end up blocking after a time because the memory
    structure for the network connections had filled up with connections
    waiting to time out. But that was probably a poorly-written app.

    -Ed

    bishop@speakeasy.net Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139