• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: LAST_ACK
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LAST_ACK


  • Subject: Re: LAST_ACK
  • From: "Peter Sichel" <email@hidden>
  • Date: Thu, 1 May 2003 12:10:24 -0400

>in my programm I connect to a webserver and fetch some pages.
>Sometimes the connection is not closed properly, I can see in netstat
>that the connection is in LAST_ACK state.
>I don't think of an error in my program. If I connect with a browser
>the same thing happens.
>This state prevents the moidem from hanging up for a long time.
>How do I close this connection?

I've had the same question. In Open Transport (Mentat/TCP),
there was a Named Dispatch parameter called "tcp_discon_by_addr"
that allowed you to delete a connection with specified endpoints.
I provided a GUI for deleting connections as part of the Connection
List tool in IPNetMonitor classic. A user could select the connection
from a list and press "delete". This was a handy feature many
customers came to rely on.

Is there any similar capability in Mac OS X?
That is, how does one delete a stale TCP control block
(struct tcpcb) explicitly?

I'm guessing one could write a socket NKE to search the
connection table for a tcpcb with matching endpoints and
then call tcp_close().

- Peter
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: hang in CFStream code
  • Next by Date: OTListen in OS 9
  • Previous by thread: Re: hang in CFStream code
  • Next by thread: OTListen in OS 9
  • Index(es):
    • Date
    • Thread