Граф коммитов

10 Коммитов

Автор SHA1 Сообщение Дата
Tristan Weir 8c24601740 Update import statements to point to github.com/mozilla/mig/ 2018-07-11 10:11:22 -07:00
Aaron Meihm 7ca2887a98 [medium/bug] resolve bufio issues under high agent/module comms
When a message between a module and the agent is read by either,
ReadInput is used which uses buffered IO to read a single line. A bug
existed here where a new bufio Reader was being allocated each time.

Under normal circumstances there would be no issue, since a single line
is generally sent to the module from the agent and read. However, in a
case where a large number of messages were being exchanged between the
agent and the module (e.g., persistent modules) it was possible the
bufio reader could have buffered more than one line. Since a new buffer
was being allocated each time, this resulted in loss of partial message
data, and usually ended up generating JSON unmarshaling errors since
part of the JSON structure was missing.

This was resolved by introducing a new ModuleReader and ModuleWriter
type that is used to read/write between the agent and modules.
ModuleReader allocates the buffered reader on creation once, so we only
ever have the single buffered reader for the lifetime of the module
execution.
2016-12-16 09:55:21 -06:00
Aaron Meihm 070fba3b4a [minor] handle pkg version invert using !, remove additional flag
Handles inverting version filter logic in similar manner to file module
content flag.
2016-05-24 14:03:55 -05:00
Aaron Meihm 38e0202cc6 [minor] optionally invert version filtering logic in pkg module 2016-05-22 14:19:05 -05:00
Aaron Meihm 360f1cbc64 [minor] support filtering by version in pkg module
Closes #182
2016-05-22 14:07:00 -05:00
Julien Vehent 87ef301263 [minor] update location of scribe package 2016-03-18 15:14:30 -04:00
Aaron Meihm 4452b4ac31 [minor] include architecture in pkg module output
closes #168
2016-01-13 11:43:51 -06:00
Julien Vehent 200a5a6164 [doc] add newline after license header to ignore it in godoc 2015-08-27 10:41:13 -04:00
Julien Vehent 91928a9fcd [minor] add import comment to packages declarations 2015-08-26 14:15:40 -04:00
Julien Vehent e9aa7febf9 [major] reorganize repository structure for `go get mig.ninja/mig`
This is a major change to the structure of the repository and the Makefile,
but a minor change in terms of functionalities. It simply changes the structure
of the directories to be compliant with Go's idiomatic build methods.

I also bought the domain `mig.ninja` and will now be using that as
a standard import path for everything. The magic to serve everything
under mig.ninja/mig will be documented elsewhere.
2015-08-25 18:01:22 -04:00