Commits
- Commit:
9659786c230c5dd9f5bb0193e07d068d828dfb44
- From:
- Omar Polo <op@omarpolo.com>
- Date:
grammar
- Commit:
1fa94674f952e02ed869066a528110a1aef8a246
- From:
- Omar Polo <op@omarpolo.com>
- Date:
make gemini_parse_reply() return -1 on error
- Commit:
81df72e1bd1474d79928c8478d09e8c713f1cdca
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't pause the request in gemini_parse_reply()
a parse routine shouldn't interfere with the handling of the events;
pulling this into the caller makes the logic simpler to follow.
- Commit:
5f285272dff39a7d4b876e094dd60b9afab0f523
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify gemini_parse_reply()
- Commit:
f2a80e942a406dcda39fddc9fd879dfb766338a8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify gemini header handling with buf_getdelim()
- 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).