12 Commits

Author SHA1 Message Date
djkazic
eab9d755b6 fix: comment punctuation and shutdown of ticker 2025-05-21 11:28:34 -04:00
djkazic
7233c25bce aperture: internally aggregate session statistics to reduce cardinality 2025-05-19 12:40:24 -04:00
Elle Mouton
5ab69aec7e hashmail: update to user structured logs
This will make querying by stream IDs more uniform (and hence, way
easier).
2025-03-05 11:12:29 +02:00
ffranr
db30c8384d lint: remove depreciated io/ioutil
As of Go 1.16, functionality provided in io/ioutil has been depreciated
in favour of the io or os packages. Now that Go has been
upgraded in go.mod, the linter will not pass without these changes.
2023-01-27 13:27:38 +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
e60b09eb51 multi: add mailbox read counter
In this commit, we add a mailbox-read-count metric. This will be
incremented each time a mailbox with an _odd_ stream ID is read from.
We do this because we assume that a full duplex connection is being used
meaning that there will be 2 streams that have a matching ID except for
the last byte. And so to avoid duplicating the data, we only record the
odd streams. We also assume that for every read, there will be a write
and so we only record the reads.
2022-04-05 09:46:28 +02:00
Elle Mouton
6c0d9866e6 multi: record the number of active mailboxes 2022-02-10 09:41:40 +02: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
Oliver Gugger
7bcc8355d0 multi: configure and start hashmail server
With this commit we make it possible to enable the Lightning Node
Connect mailbox server to be enabled and started as a local service
within aperture.
2021-11-24 17:32:47 +01:00
Oliver Gugger
8dad6da45a aperture: add hashmail server 2021-11-24 17:32:41 +01:00