Commits
- 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
- Commit:
b07d2757b848245032749fb16d7a4ab6f360d7f4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rework net_read() a bit
- don't stop after parsing the header
maybe there's some page data in the buffer, let's try to forward it
immediately too.
- use a local buffer plus bufferevent_read()
- Commit:
c24b14ad282967165c7a76de548f622365fa447f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use the new imsg_get_data() in a few places
- Commit:
5657662f9f60baa58e29c8c34dbd0c68cc784790
- From:
- Omar Polo <op@omarpolo.com>
- Date:
net: don't need a uri, just host and port fields
While here, make 'em dinamically allocated.