Commit graph

6 commits

Author SHA1 Message Date
34593d380a refactor: hub reorganized a little 2018-08-23 12:25:07 +02:00
8568280dd1 FIX timeout issues between channels
we introduced non-blocking writes; however, being non-blocking when the
goroutine has no buffer means that many messages will be considered
lost.
This commit change from "non blocking" to "max 500ms; first timeout
means stop it all"; it also put a little buffer on client messages.
2018-08-23 02:05:50 +02:00
bf145240c2 proper cmd directory 2018-08-23 01:21:53 +02:00
97743eaad5 Hub resists to Client failures 2018-08-23 01:14:08 +02:00
66f32d1c05 refactor: now Hub keeps everything
before this there was some hidden race condition because raceCondition
is not concurrent-safe, and there was some concurrent reading and
writing.
Now everything is handled safely by the Hub.

Client now have "options" which are understood by the Hub to handle
them differently.
2018-08-23 01:04:31 +02:00
b1b83f488e Websocket to follow logs 2018-08-22 23:51:59 +02:00