|
|
| Author |
Message |
|
| Guest |
Posted: Fri Nov 06, 2009 6:36 am |
|
|
|
Guest
|
Some gen_tcp functions allow {fd, Fd} to be passed in to make the resulting
sockets use an already-opened file descriptor instead of opening their own.
This is invaluable for certain applications. Unfortunately, calling close on
such sockets always leaves any passed-in Fd open -- I guess the design is
such that it assumes that whatever originally opened the Fd would want to
close it too.
Is there any chance of getting a new option to have the close function close
not only the socket but the passed-in Fd too? Or to allow the application to
pass along a callback of some sort that will get called to close the Fd when
the socket is closed?
I'd be happy to help prepare and test a patch along these lines if there's
any interest in adding this.
thanks,
--steve
Post received from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|