Esempio n. 1
0
func handleListener(manager *connmgr.ConnManager, listener net.Listener, artemisServerAddr string) {
	log.Printf("Proxy server started on %v", listener.Addr())
	err := connmgr.ServeReverseProxy(manager, listener, artemisServerAddr)
	// TODO: Use cfg.LogNewConnections.

	log.Printf("Proxy server stopped on %v with error: %v", listener.Addr(), err)
}
Esempio n. 2
0
func (srv *Service) handleListener(manager *connmgr.ConnManager, listener net.Listener, artemisServerAddr string) {
	srv.log.Printf("Started on %v", listener.Addr())
	err := connmgr.ServeReverseProxy(manager, listener, artemisServerAddr)
	srv.log.Printf("Stopped on %v with error: %v", listener.Addr(), err)
}