Add dial parallel for outbound dialer

This commit is contained in:
世界 committed 2022-07-08 13:08:29 +08:00
1 parent d45007b501
commit 3699a57847
17 files changed
+253 -39

No files matched your search

+1
View File
@@ -142,6 +142,7 @@ func (a *myInboundAdapter) loopTCPIn() {
a.logger.WithContext(ctx).Info("inbound connection from ", metadata.Source)
hErr := a.connHandler.NewConnection(ctx, conn, metadata)
if hErr != nil {
conn.Close()
a.NewError(ctx, E.Cause(hErr, "process connection from ", metadata.Source))
}
}()