lorenzodonini / ocpp-go

Open Charge Point Protocol implementation in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

timeout on asynchronous requests

mnikitovic opened this issue · comments

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