moov-io / iso8583-connection

:satellite: Go-powered ISO8583 connection handler offering advanced binary framing, message interleaving, and a robust connection pool for load distribution and seamless reconnections.
Apache License 2.0
70 stars 23 forks source link

Add options for send method #62

Closed alovak closed 1 year ago

alovak commented 1 year ago

With this PR we make it possible to set custom SendTimeout value for the Send method call. Example:

resp, err := conn.Send(message, connection.SendTimeout(100*time.Millisecond))

it's useful when you want to send Ping/Echo messages that may have their own round-trip times.