diff options
Diffstat (limited to 'serve_mx.go')
-rw-r--r-- | serve_mx.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serve_mx.go b/serve_mx.go index 5e52ed3..4909644 100644 --- a/serve_mx.go +++ b/serve_mx.go @@ -224,7 +224,7 @@ func (session *mx_recv_session) handle(ctx context.Context) error { } } -func handle_mx_recv_conn(ctx context.Context, net_conn net.Conn) error { +func mx_new_session(ctx context.Context, net_conn net.Conn) error { session := mx_recv_session{ net_conn: net_conn, } @@ -254,7 +254,7 @@ func serve_mx() { go func() { ctx, cancel := context.WithCancel(context.Background()) defer cancel() - err := handle_mx_recv_conn(ctx, conn) + err := mx_new_session(ctx, conn) if err != nil { if err == err_connection_handler_eof { clog.Info("MX: Connection for " + conn.RemoteAddr().String() + " closed with EOF") |