i had this problem for quite some time.. whenever $port is unavaible for some reason and u did a ns_sockopen... booomm nsd dies... i did a catch but still doesn't work... if { [catch {ns_sockopen -nonblock $host $port} rw_sock] } { set port "9999" ns_log "Notice" "Redirecting Port to $port" set rw_sock [ns_sockopen -nonblock $host $port] } what's the problem is it my code...?? thanks in advance ---------------------------------------------------------------------- The information contained in this message (including any attachments) is confidential and intended solely for the attention and use of the named addressee(s). It must not be copied, distributed nor disclosed to any person. If you are not the intended recipient, please delete it from your system and notify sender immediately. Any disclosure, copying or distribution thereof or any action taken or omitted to be taken in reliance thereon is prohibited and may be unlawful. ----------------------------------------------------------------------