In certain circumstances I do not want to respond anything to client, as if there were nothing responding in a certain port, as if the port were not in use.
Schematically:
func handleClient(w http.ResponseWriter, r *http.Request) {
if ( **** condition **** ) {
// Drop connection without sending anything to client
} else {
// Normal response
}
}
I will appreciate any help or clue to afford it.