lorenzodonini / ocpp-go

Open Charge Point Protocol implementation in Go
MIT License
277 stars 126 forks source link

timeout on asynchronous requests #165

Open mnikitovic opened 1 year ago

mnikitovic commented 1 year ago

Hi,

I'm using an asynchronous call to send an Authorization request from the charge point to the CS, and I'm wondering if there is a way to set a timeout for that async call in case the connection is dropped after the request is sent or something else happens so that the response never comes (or takes too long time)?

Also, as previously asked, it would also be great if it was possible to invalidate the sent async message if the local timeout is triggered. Sounded as that wasn't possible from you previous response. Has that changed since then?

Kind Regards, Mladen