Re: Deleting a TCP connection in Mac OS X
Re: Deleting a TCP connection in Mac OS X
- Subject: Re: Deleting a TCP connection in Mac OS X
- From: Josh Graessley <email@hidden>
- Date: Thu, 05 Jun 2008 10:23:44 -0500
On Jun 5, 2008, at 9:34 AM, Peter Sichel wrote:
On Jun 4, 2008, at 6:49 PM, Ryan McGann wrote:
One thing that I have requested in the past, but not been
successful lobbying for, is KPI access to the PCB list in the
kernel. We _have_ to use the sysctl API sometimes because
maintaining our own PCB list by monitoring KPI events is not
practical, but some of the data in the pcb is quite useful. If
there were a way to access the PCB from the kernel and do our own
"translation" to private data structures, that would be much more
useful for us anyway, and probably yield better performance for our
users.
Allow me to add another request to this. I'd like to see an API
(and KPI) to kill a connection (delete a PCB). Open Transport
(Mentat/TCP) had this and users loved it (I still get requests for
this feature). Sometimes a connection gets wedged or misbehaves and
I have yet to find a simple way in Mac OS X to get rid of it (short
of restarting the whole stack).
Mentat/TCP had a feature called "Named Dispatch" that allowed you to
delete a connection entry by specifying the local and remote
endpoints. Is there anything similar in Mac OS X?
There is no simple way to accomplish this. It is possible to call
sock_shutdown on a TCP socket inside the kernel to effectively kill
it. Finding the socket is the hard part.
If you haven't already done so, please file a bug for this request.
Also, WWDC is next week. A lot of the networking folks we be at the
labs. Feel free to come by and talk to us about any requests you have.
Thanks,
-josh
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden