ns_mgr_poll(): do not add closed socket to the select() fd_set.
Moved hardcoded buffer sizes to #defines
ns_mgr_poll(): added comment around ns_close_conn(). Better control flow for closed connection.