Commit Graph

223 Commits

Author SHA1 Message Date
Sridhar Ratnakumar 6cb4dc0ca8 add comments clarifying existing behaviour of readLine 2014-05-16 16:46:31 -07:00
Sridhar Ratnakumar 8dcd1ad3e5 Merge pull request #29 from ActiveState/leakybucket
Rate limit using leaky bucket algorithm

for https://bugs.activestate.com/show_bug.cgi?id=103143
2014-04-29 20:44:32 -07:00
Sridhar Ratnakumar 5858c968e0 update changelog 2014-04-29 20:08:59 -07:00
Sridhar Ratnakumar f547814901 include License file of original code 2014-04-29 19:56:11 -07:00
Sridhar Ratnakumar 63578d7a58 tests must include leakybucket 2014-04-29 19:55:54 -07:00
Sridhar Ratnakumar 34fb5fd3ef integrate leakybucket algorithm 2014-04-29 16:39:57 -07:00
Sridhar Ratnakumar a67a74158f import ratelimitter from 99designs
https://github.com/99designs/goodies/tree/master/ratelimiter

exclude the memcache storage; we don't want to depend on the unused
gomemcache package.
2014-04-29 16:31:26 -07:00
Sridhar Ratnakumar 6ca4028d41 Merge pull request #28 from ActiveState/rate_limit_handle_buffer
LimitRate should discard read buffer

internal Bug #103143
2014-04-28 15:02:21 -07:00
Sridhar Ratnakumar 3d549f46bd update changelog 2014-04-28 14:58:39 -07:00
Sridhar Ratnakumar c13cdd473c refactor seek routine 2014-04-28 14:55:51 -07:00
Sridhar Ratnakumar 555e6044ca fix for the failing test case (parent commit) 2014-04-28 14:51:59 -07:00
Sridhar Ratnakumar afbbb638b5 add failing test case 2014-04-28 14:46:42 -07:00
Sridhar Ratnakumar 734bf58f78 should be Fatal here 2014-04-28 14:46:18 -07:00
Sridhar Ratnakumar 473bd49874 test: rewrite the confusing mismatch message 2014-04-28 14:15:34 -07:00
Sridhar Ratnakumar fc42d757b5 test: ensure that subsequent line(s) are being skipped 2014-04-28 14:15:17 -07:00
Sridhar Ratnakumar d2a44130c2 explain what the +2 is for
/
2014-04-28 14:14:21 -07:00
Sridhar Ratnakumar 074c77ccbf update test for parent commit 2014-04-28 12:56:31 -07:00
Sridhar Ratnakumar 64e99b360f make cool-off error message less obscure 2014-04-28 12:49:23 -07:00
Sridhar Ratnakumar d21b644dea Merge pull request #26 from ActiveState/update_fsnotify
update fsnotify to latest
2014-04-12 17:06:04 -07:00
Sridhar Ratnakumar a1e489f93d update fsnotify to latest 2014-04-12 17:02:59 -07:00
Sridhar Ratnakumar 214eb29af3 fulltest should be run on saucy image
for Go 1.2
2014-04-12 17:02:34 -07:00
Sridhar Ratnakumar baf6674f00 add copyright statements 2014-04-12 16:59:40 -07:00
Sridhar Ratnakumar f6d4bc16d4 note PR #24 in change log 2014-04-12 16:32:04 -07:00
Sridhar Ratnakumar 9f7054d896 Merge pull request #24 from masahide/add-test-over4096byte-line
Support lines of length more than 4096 bytes
2014-04-12 16:30:28 -07:00
YAMASAKI masahide 6a3ddb6ced If specified the MaxLineSize, then set to the bufio.reader MaxLineSize. 2014-04-06 09:48:37 +09:00
funkygao 7ccd8397a1 fix problem of long line EOF 2014-04-05 17:53:23 +09:00
Sridhar Ratnakumar 24d682e8af Merge pull request #25 from ActiveState/travis_test_fix
Test fixes for travis-ci
2014-03-21 22:35:31 -07:00
Sridhar Ratnakumar 3da62cd5ae account for POLL_DURATION in the reopen test
ref: https://travis-ci.org/ActiveState/tail/builds/21301728
2014-03-21 22:32:56 -07:00
Sridhar Ratnakumar 0383a079b7 make travis config work 2014-03-21 22:32:20 -07:00
Sridhar Ratnakumar a7279e8208 add build status to README 2014-03-21 22:02:52 -07:00
Sridhar Ratnakumar efd9baa50f add .travis.yml 2014-03-21 22:00:08 -07:00
Sridhar Ratnakumar 039d5571ac changelog update for PR #22 2014-02-22 23:51:39 -08:00
Sridhar Ratnakumar 751a3add5c Merge pull request #22 from GeertJohan/master
Add logging options to config
2014-02-22 23:51:04 -08:00
GeertJohan 3b09eddf4d Removed conig option DisableLogging. Add DiscardingLogger instead. 2014-02-22 15:48:23 +01:00
Geert-Johan Riemer 0c51ff11d1 Add logging options to config 2014-01-30 13:47:28 +01:00
Sridhar Ratnakumar be2914fd12 minor clarification in the Cleanup comment
we are not totally sure if this is an issue in every distro/kernel/environment.
2014-01-04 23:19:15 +05:30
Sridhar Ratnakumar 36ba8bccb9 advance fsnotify pinning to latest stable revision
also flatten the dependency spec using git-clone
2013-11-22 16:45:56 -08:00
Sridhar Ratnakumar c5b73d3485 add NewLine helper to create a Line instance 2013-11-14 09:44:28 -08:00
Sridhar Ratnakumar f3593827b3 Merge pull request #20 from ActiveState/inotify_cleanup
add Cleanup function to close open inotify watches
2013-11-13 17:43:11 -08:00
Sridhar Ratnakumar accbe0dc99 descriptive comment for the Cleanup function 2013-11-13 17:41:13 -08:00
Sridhar Ratnakumar 6ffcd854c1 run 'go fmt' (and fix 'make fmt' in Makefile) 2013-11-13 17:38:23 -08:00
Sridhar Ratnakumar ebc25f9788 update change log 2013-11-13 17:37:03 -08:00
Sridhar Ratnakumar 323e1c0988 add Cleanup function to close open inotify watches
bug: 101635
2013-11-12 20:15:27 -08:00
Sridhar Ratnakumar 7cb0dcdbe1 add deps.json for use with depman 2013-11-07 21:09:27 -08:00
Sridhar Ratnakumar 56c4b221b8 replace the alarmist panic with Fatal
Fatal shows only a single goroutine stacktrace.
2013-10-11 18:19:43 -07:00
Sridhar Ratnakumar 88298d7cf8 Merge pull request #18 from miraclesu/fix_stop_hang
Fix a hang in `Stop` when tailing a non-existent file

Reproducible on linux, but not on mac.
2013-09-23 18:19:18 -07:00
miraclesu 058eb3d8df combine two if conditions 2013-09-24 09:13:19 +08:00
Sridhar Ratnakumar c9444e81ae Merge pull request #17 from presbrey/patch-1
fix race/panic on modify+delete
2013-09-23 11:58:53 -07:00
miraclesu a7f9b4b6fc Fixed stop hang & stop err 2013-09-23 15:03:51 +08:00
presbrey afd80c034c fix race/panic on modify+delete
This fixes a race condition when a file is modified and unlinked in the OS before the inotify IsModify event has a chance to call os.Stat.
2013-09-22 22:51:12 -04:00