Commits
- Commit:
4c7d2b8fffba7a465cba957f823bc24d1d64cc04
- From:
- Omar Polo <op@omarpolo.com>
- Date:
buffer is frozen; drain becomes a NOP
- Commit:
1470eab31452d2fab50bc4965320dab7892b2ef3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix bufferevent tls I/O on libevent2
on libevent2 we need to wrap evbuffer_add with
evbuffer_freeze/evbuffer_unfreeze. Not sure exactly why, probably
because we're doing some evbuffer_enable/disable/enable-again.
Retain compatibility with the custom libevent1 in base on OpenBSD.
- Commit:
590c00b776ba5daed0a5dcb4b65f0d2faefac615
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drain read buffer before EOF
- Commit:
1663bf1e97e8a9f54bb78bfe8853f81c8e99e6db
- From:
- Omar Polo <op@omarpolo.com>
- Date:
initial gopher support
- Commit:
5fb52fc04465f7828ef88810d153e77c705efa57
- From:
- Omar Polo <op@omarpolo.com>
- Date:
support finger:// urls!
- Commit:
69f631d93578026c42de78c0165983c036f7b135
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix possible overflow
sizeof(buf) should be equal to howmuch, otherwise we may end up reading
with tls_read out of bounds and corrupting the stack.
- Commit:
edfe87bea0c396c48cb8344f02dcce6e3880711f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move struct req declaration up
avoid a dummy `struct req;'
- Commit:
77ae5e91860b3ea55ee275089622584597f3062b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
re-align declarations
- Commit:
e2a349f79360cc6441c367ccf4fb139535f61c58
- From:
- Omar Polo <op@omarpolo.com>
- Date:
reorder
- Commit:
318a6c1a4be3e07520b2a6640a095272397819f8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop req_by_id_req, allow req_by_id to return NULL
- Commit:
0d40acb17f9926cbf33284d1a0129a9d1984ac33
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop setup_tls
- Commit:
bfb9acb0d6c48e290a15bf0dc70d90620d4b6d94
- From:
- Omar Polo <op@omarpolo.com>
- Date:
wrap some long lines
- Commit:
74c0f6ba3cbdbdf2d8d0b7a868e091cb42c54918
- From:
- Omar Polo <op@omarpolo.com>
- Date:
deallocate memory before exiting
it's not really required, we're gonna quit anyway, but it's cleaner
and helps reducing the clutter when using leak detection tools.
- Commit:
5b762f01d4f82c9f2568e1928a42abd87e488bc3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactor net code
Generalize a bit the flow. Expect a request to be written and a body
to be sended with net_send_ui. This will make easier to add other
protocols like finger or gopher in the future. Also, switch to
evbuffer instead of manually calling tls_read/write: with evbuffers we
can abstract over the actual I/O routine and just read/write buffers
in memory. This too will help with adding more protocols.
- Commit:
f45bd2e3b9e02ae3ef0daf3766d36ba35ab3a56c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename client -> net