Commits
- Commit:
ce0234337a4093b79ae71ea572440f6a2c8af157
- From:
- Omar Polo <op@omarpolo.com>
- Date:
decouple bufio from ev
more a matter of cleanliness than a strong reason, but this allows
to reuse bufio without ev (if wanted to.)
- Commit:
51ea137bb49c36da2a1bbe887f47cb8614fbe436
- From:
- Omar Polo <op@omarpolo.com>
- Date:
net: initialize fds earlier
- Commit:
62d3cd290e6d0b4aa1fe7f2c70a7654e6d7179a6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
net: use a single timer for asr and handshake timeout
- Commit:
87d297d14e29cf2c5a8a11b8f4db518d9217e337
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move imsgev & co to their own file
This avoids bringing the dependency on ev on telescope-identity(1) and
the tests as well.
- Commit:
108846853f74d3cd0934bf2ccb2041b95668f1b8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
net: re-enable asr_run
Make asr_run() work on top of ev. While here, rename the function
names and add real error checking.
- Commit:
99ebdacbeb6a98bb61e227c3239dd47de5f36b06
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add a paranoic check
- Commit:
cc300b254acac91d7a531e5305c3bc681fb3871d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add missing return
otherwise we try to reschedule the socket we've just closed.
- Commit:
98d3e6c172747dc58042bde09a848d3e03572934
- From:
- Omar Polo <op@omarpolo.com>
- Date:
convert telescope to use ev instead of libevent
libevent is a very cool library, I like the APIs and enjoy using
it. However, telescope is not as large and doesn't have as many
file descriptor, so libevent is quite ``too big'' for our needs.
ev started as a small event loop on top of poll(2) for amused, and
can be used here too, it just needed to grow the ability to handle
several timers, as we need quite some on telescope (in fact, we use
more timers than fds!)
- Commit:
c6287992bf8097498b7fe492345e5334218b3b17
- From:
- Omar Polo <op@omarpolo.com>
- Date:
net: improve error messages for connection failures
- Commit:
af6907bf376ad1ee642b1a281ef64cdb7cd4ddbe
- From:
- Omar Polo <op@omarpolo.com>
- Date:
net: improve handling of connect(2) failures
If we succeed to make a socket(2) but fail to connect(2), still
attempt to reconnect using the other results from getaddrinfo(3).
- Commit:
90c462261dfb869b5e25c44bc9f17259e28e4b40
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve error message on connection interruption
- Commit:
d35e18b31b0e05c6178a6bfa891dd2e2dadf3db1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
first draft of client certificate support
At the moment telescope loads a mapping host:port/path -> certificate
from a file and always uses it, no ways to change it, use a temporary
one, generate a new one, etc are provided yet.
The format of ~/.telescope/certs/certs is
host port path certificate file name
where the certificate file name is the name of a file inside
~/.telescope/certs.
~/.telescope/certs/ is ~/.local/share/telescope/ when using XDG.
- Commit:
54764e41a11e16a56da805313f209a9937c5173d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
send the reply code and meta in a single imsg
- Commit:
0388b56b659378d06da4d3ae5b44ec1b11d53374
- From:
- Omar Polo <op@omarpolo.com>
- Date:
net: switch to new imsg apis
- Commit:
186a1eec82f03f9e24c4095c0a31f4a10de19c88
- From:
- Omar Polo <op@omarpolo.com>
- Date:
inline a goto err