Re: [go-nuts] Passing Already Accepted Connection to http.Serve()

2017-02-25 Thread Henry Camacho
-nuts Subject: Re: [go-nuts] Passing Already Accepted Connection to http.Serve() You're not waiting for the server to finish handling the connection before returning from main, which abruptly ends your program. Try importing context and using this at the end of main() (note that Shutdow

Re: [go-nuts] Passing Already Accepted Connection to http.Serve()

2017-02-25 Thread Matt Harden
You're not waiting for the server to finish handling the connection before returning from main, which abruptly ends your program. Try importing context and using this at the end of main() (note that Shutdown was recently added): ctx := context.TODO() s

[go-nuts] Passing Already Accepted Connection to http.Serve()

2017-02-23 Thread henry . f . camacho
I am attempting to pass an already accepted connection to http.Serve(). I need to preview the connection allowing inspection of type of traffic appearing on a single port. The desire is to handle a number of types of connections to a single port. I'll preview the traffic, determine what type i