Commit Graph

8 Commits

Author SHA1 Message Date
ffranr
6e9bd0d784 lint: gocritic: silence append func warning 2023-01-27 12:41:17 +00:00
Elle Mouton
870a617657 multi: gc stale mailboxes
In this commit, we start a timer if a mailbox stream is completely
un-occupied (neither read or write stream is occupied). The timer
stopped if either of the streams are occupied and is reset if both
streams are unoccupied.
2022-09-29 11:27:35 +02:00
Elle Mouton
559d2b3b97 aperture: add NewConfig function
Add a NewConfig func so that all pointer variables in the config object
can be initialised so that we can avoid needing to do nil checks
everywhere.
2022-02-14 09:37:41 +00:00
Oliver Gugger
28e6b624cc hashmail_test: fix linter issues 2021-11-24 22:02:22 +01:00
Oliver Gugger
d1112e35df hashmail_test: fix race condition in test setup 2021-11-24 21:58:07 +01:00
Olaoluwa Osuntokun
abb13dc7c7 aperture: run gofmt 2021-11-24 13:38:03 -06:00
Oliver Gugger
7c7b1145eb hashmail_server: fix writes up to 2 MB
This commit adds the ability for a mailbox message to be up to 2MB in
size.
2021-11-24 17:32:47 +01:00
Oliver Gugger
8d37d8a3d9 hashmail_server: fix blocking reads
With this commit we fix a bug in the hashmail server that didn't return
a read stream properly if it was closed from the client side.

Co-authored-by: Elle Mouton <elle.mouton@gmail.com>
2021-11-24 17:32:47 +01:00