CrunchyData / pg_eventserv

Small golang server to push PgSQL listen/notify events into websockets
Apache License 2.0
199 stars 14 forks source link

Continous stream of "level=info msg="Closing idle web socket 1" log entries #3

Open gamesbook opened 1 year ago

gamesbook commented 1 year ago

I am running pg_eventserv in a docker, and when I check the logs I see an ongoing stream of the above messages (the web socket number increments each time).

Can I ask what causes this and if there is any way to disable it? (I cannot raise the log level at this time).

pramsey commented 1 year ago

Well, every time a client disconnects it will leave an orphaned web socked on the server, which will eventually time out and leave that in the log. Probably the answer is to push the log level lower, since timing out orphaned sockets is sort of unavoidable.