set server port to 0.0.0.0
move send_data / close from request to response