profile
viewpoint

Ask questionsAllow radius response to timeout

Enhancement: currently after RADIUS request is sent (via Client.Exchange()) the response to the requests blocks. In order to allow the response to timeout, a ReadTimeout can be set on the connection.

layeh/radius

Answer questions bontibon

This is already supported with context:

ctx, done := context.WithTimeout(context.Background(), time.Second)
defer done()
resp, err := client.Exchange(ctx, req, server.Addr)
useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List