Here is a code review request for two issues with the 
misc.port_available method.

Issues:
http://defect.opensolaris.org/bz/show_bug.cgi?id=2695
http://defect.opensolaris.org/bz/show_bug.cgi?id=2705

Webrev:
http://cr.opensolaris.org/~tmueller/cr-2695,2705/

The fix for 2695 is to use the sockaddr variable for the address rather 
than the (host, port) tuple. This make it work for older versions of 
Mac/OS.  The fix for 2705 is to add an exception catching clause for the 
socket.timeout exception. If we timeout trying to connect to the port, 
then the port should be available for use so we return true.

Thanks.
Tom

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to