Commit graph

23 commits

Author SHA1 Message Date
Shivaram Lingamneni
a16267c773 ircevent: avoid uses of time.After
"The underlying Timer is not recovered by the garbage collector until the
timer fires. If efficiency is a concern, use NewTimer instead and call
Timer.Stop if the timer is no longer needed."
2021-05-10 09:14:58 -04:00
Shivaram Lingamneni
4b81d501cc ircevent: add AllowTruncation 2021-04-23 11:14:48 -04:00
Shivaram Lingamneni
7612702f6e fix #52
Fix data race on (*Connection).batchNegotiated
2021-03-17 01:40:03 -04:00
Shivaram Lingamneni
5dda03b554 clean up some event-related language 2021-03-10 19:15:58 -05:00
Shivaram Lingamneni
23a3bb8f66 rename to Message and Reader; remove Event 2021-03-10 18:08:37 -05:00
Shivaram Lingamneni
8f78fbb4a2 don't accept regular callbacks for BATCH 2021-03-10 14:07:24 -05:00
Shivaram Lingamneni
b26cd91715 tweak force-expiration behavior 2021-03-10 14:05:12 -05:00
Shivaram Lingamneni
05d8f44198 clean up synchronization in tests 2021-03-10 13:22:31 -05:00
Shivaram Lingamneni
b2a42a4234 make sure non-label batches expire as well 2021-03-10 12:43:23 -05:00
Shivaram Lingamneni
6d11cde149 explain HandleBatch and HandleEvent 2021-03-10 02:32:02 -05:00
Shivaram Lingamneni
e9d62eeee7 support batch and labeled-response 2021-03-10 02:21:53 -05:00
Shivaram Lingamneni
dc67fb1e17 add error prints for standard replies 2021-03-03 01:36:19 -05:00
Shivaram Lingamneni
4954891ab6 don't wake up Connect() until after the MOTD 2021-03-01 02:48:21 -05:00
Shivaram Lingamneni
4992421a60 factor out magic number 2021-03-01 02:21:11 -05:00
Shivaram Lingamneni
eb8b7606c3 add a test for SASL authentication failure 2021-03-01 01:25:03 -05:00
Shivaram Lingamneni
4d031b5bd0 refactor callback/protocol handling
1. Change internal representation of callbacks
2. Add AddConnectCallback
3. Parse 005 RPL_ISUPPORT and expose to the client
4. Support CAP LS 302
2021-03-01 01:03:43 -05:00
Shivaram Lingamneni
cd0bb497ee remove support for CallbackTimeout 2021-02-23 16:36:47 -05:00
Shivaram Lingamneni
0f44346fcf fix ircevent tests to emit compliant messages 2021-02-21 17:07:57 -05:00
Shivaram Lingamneni
7516151d4c remove indirections in examples 2021-02-20 23:12:43 -05:00
Shivaram Lingamneni
5167dfab9c fail SASL tests if no environment variables set 2021-02-19 12:03:16 -05:00
Shivaram Lingamneni
a4b4bd8155 update examples, run gofmt 2021-02-19 11:45:33 -05:00
Shivaram Lingamneni
dc36bd80a6 initial fixes and refactoring 2021-02-19 03:55:06 -05:00
Shivaram Lingamneni
3e23f7f884 move to ircevent subdirectory 2021-02-15 21:58:48 -05:00