Commit graph

19 commits

Author SHA1 Message Date
Fernando Barbosa
00f72ef206
Fix EventStreamSSE Memory Leak
The `Config.Services.Pubsub.Subscribe` is being initialized with the global Gin Context. This causes the publisher object to [hang at line 58](https://github.com/cncd/pubsub/blob/master/pub.go#L58) and the goroutine remains opened indefinetly, which can be a source of memory leak.

Setting it to the locally defined ctx object correctly causes the goroutine to close when the function exits due to the deferred close.

See https://discourse.drone.io/t/memory-leak-on-drone-server/1884 for further information.
2018-03-27 19:19:22 -03:00
Thomas Boerger
7f49e69607
Just fixed format with go fmt ./... 2018-03-21 14:02:17 +01:00
Brad Rydzewski
580fe9abb7 add apache license header to files 2018-02-19 14:24:10 -08:00
Brad Rydzewski
c95d2bf9f0 restart build will always fork; update sqlite 2017-09-10 17:45:42 -07:00
Brad Rydzewski
23a348b4f7 periodically ping client from server 2017-08-22 08:49:44 -07:00
Brad Rydzewski
441a015ca8 serve logs with sse; update acme pkg 2017-07-24 15:57:07 -04:00
Brad Rydzewski
39251a85a9 removed unused and broken packages 2017-07-24 13:23:22 -04:00
Brad Rydzewski
c867bcaf3c add sse for user event feed 2017-07-18 12:27:20 -04:00
Brad Rydzewski
35e0ee2e5f implement sync logic 2017-07-14 15:58:38 -04:00
Brad Rydzewski
8348c858ba wip enable pluggable secret and registry backends 2017-04-11 19:06:45 +02:00
Brad Rydzewski
ec88661d9e refactor job to proc 2017-04-02 23:13:26 +09:00
Brad Rydzewski
a95b118cb3 removed legacy code, updated cli 2017-03-16 18:14:02 +08:00
Brad Rydzewski
623be6d830 put updated agent behind flag 2017-03-05 18:56:08 +11:00
Jacob McCann
c0fcc2dfed Don't allow "logging" messages after eof is received 2017-02-14 13:33:29 -06:00
Brad Rydzewski
6f44450ef8 initial sort of working mq integration 2016-09-27 19:33:13 -05:00
Brad Rydzewski
0b2f1c8e51 integrates drone/mq into agent 2016-09-26 03:29:05 -05:00
Brad Rydzewski
f2c1d46f9e queue integrated with server, but not agent 2016-09-26 00:39:28 -05:00
Brad Rydzewski
4d1df2924c replace UI with single page application (#1704) 2016-07-08 15:40:29 -07:00
Brad Rydzewski
0fb4aeda3f bump to 0.5 in master 2016-05-02 12:21:25 -07:00
Renamed from web/stream.go (Browse further)