lorenzodonini / ocpp-go

Open Charge Point Protocol implementation in Go
MIT License
262 stars 125 forks source link

Fix blocking in DeleteClient when server has stopped processing requests #79

Closed michaelbeaumont closed 3 years ago

michaelbeaumont commented 3 years ago

DeleteClient can be called from ocppj.Server after the dispatcher has stopped and messagePump has set d.requestChannel = nil, causing onClientDisconnected to hang and the websocket pump goroutines to hang and never return.

michaelbeaumont commented 3 years ago

This doesn't sufficiently solve the issue