Http Listener with thread