brainy commented on PR #9:
URL: https://github.com/apache/serf/pull/9#issuecomment-3024792858

   Serf is asynchronous, and one serf-context can juggle multiple connections. 
You need a callback if you want to have a hope in hell of keeping all this 
straight on the error-reporting side.
   
   That said, however: the callback doesn't know which connection a given error 
belongs to. That could be a problem.  typical case would be a context with one 
SSL connection to a server and one connection to an OCSP responder that 
validates the server cert. It'd be strange if, e.g., OCSP connection errors 
were reported against a Subversion server.
   
   OK, OCSP connections shouldn't use SSL. Which brings up the point: why would 
this callback only be used to report SSL errors, when there can be other kinds 
of error descriptions available for other connection types, and they, too, 
can't know what actually happened.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@serf.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to