Will Moss
85fbfff308
Properly handle errors on input sockets
...
`buf` is of length 0, so you never make it into
the loop to handle the errors. This means you end
up in a tight loop calling `ReadBytes` and always
getting back `io.EOF` and 0 bytes.
2015-03-02 21:52:40 -08:00
Leonid Bugaev
1637dd491f
Convert tabs to spaces and force go fmt
2014-10-13 18:05:16 +04:00
Joseph Lawson
89f1b50b8d
new_buf_len needs to be > 0 as we already account for the control character.
2014-03-31 15:42:00 -04:00
Joseph Lawson
9b0153f45f
prevent crash on quits
2014-03-31 11:43:33 -04:00
Joseph Lawson
3d3cb1dbf5
fixed a reader bug
2014-03-29 18:52:42 -04:00
Joseph Lawson
28f7078dbb
make tcpinput use readbytes and create new slice prior to copying to the buffer.
2014-03-28 23:09:49 -04:00
Leonid Bugaev
0fb1d83284
Simplify directory structure
2014-03-16 22:24:27 +06:00
Leonid Bugaev
d67bea5e10
Fixed #82
2014-03-16 22:01:23 +06:00
Leonid Bugaev
9bba1296bd
Persistent connection support for input_tcp
2013-11-02 21:11:17 +01:00
Leonid Bugaev
ce76453fa6
Added tests for all plugins
2013-10-29 11:42:15 +01:00
Leonid Bugaev
2a4efa91af
Initial commit
2013-10-27 18:49:00 +00:00