|
@@ -8,13 +8,14 @@ import (
|
|
|
|
|
|
// helper routines - to help with testing.
|
|
|
|
|
|
-func setupSockets() (server net.Conn, client net.Conn) {
|
|
|
+// Using pipes causes failures.
|
|
|
+func Possible_setupSockets() (server net.Conn, client net.Conn) {
|
|
|
// the better way to set up connections.
|
|
|
return net.Pipe()
|
|
|
}
|
|
|
|
|
|
// setupSockets: return server and client (that's connected to server)
|
|
|
-func Old_setupSockets() (server net.Conn, client net.Conn) {
|
|
|
+func setupSockets() (server net.Conn, client net.Conn) {
|
|
|
// establish network socket connection to set Comm_handle
|
|
|
var err error
|
|
|
var sock net.Listener
|