walkor / workerman

An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols.
http://www.workerman.net
MIT License
11.12k stars 2.26k forks source link

Error handling implemented in all event classes #978

Closed luzrain closed 11 months ago

luzrain commented 11 months ago

I found out that throwing errors in Event classes was not handled in all cases although errorHandler is provided by interface.
Errors was only handled for delays, not for streams, and it was also not implemented in every Event class.
So in this mr I have implemented error handling in every Event class in every case including stream events to use provided errorHandler.
I also did some codestyle fixes and described types in doc block more strictly.