Commits
- Commit:
315668d47de15aca3c4f52136a3e55cd2adc04dd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
endian.h is not universally available
FreeBSD and NetBSD have sys/endian.h, on MacOS we need to use the
functions from libkern/OSByteOrder.h
see github issue #1
- Commit:
c234caae8bdf0b2be5ee26fee87f0fcbf0d95488
- From:
- Omar Polo <op@omarpolo.com>
- Date:
limit IMSG_BUF_CONT size by the maximum allowed by imsg
- Commit:
8b0a506230428aaacefd78995955e80f058d9c9d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
allow Twrite with size bigger than ~16K
Until now I've been using a single imsg to handle each messages and
the imsg framework has a limit of around 16K for message. For almost
all requests, this is fine.
Except for Twrite and Tread.
This is an attempt to make Twrite handle bigger buffers. The listener
process just looks at how big a request is and split it up in multiple
messages and the client process tries to remember the fid, position
and missing data to continue the write. This means that a single
Twrite can be split up in multiple write(2)s.
- Commit:
3f9ddef4a0a63e2a10064e126044343e16ce4a54
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop unused function listen_by_id
- Commit:
4902ad0698f3a6e396d026278d9bdd8efe734691
- From:
- Omar Polo <op@omarpolo.com>
- Date:
kill unused variable
- Commit:
f4bc229f64047cd8b9a2802c312946aee3240295
- From:
- Omar Polo <op@omarpolo.com>
- Date:
tweak debug call
- Commit:
bc20ef66e60cf8e65d1d0520cccce9cbc30b7c4f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop unnecessary debugging log
- Commit:
5c69b561db9f5713670e2f1e1519cc7f61b06645
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add IMSG_CTL_DEBUG to debug the opened fid
meant to be used from kamictl to dump all the opened fid by every
connection.
- Commit:
00fe86bc5bcaa07c44673ea4719609b539d97ce9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
listener: enable config reload
- Commit:
38a6fd3d7baf09b83ee89a43574dec61146a08b9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
cache listener flags in struct client
this saves us from the small chance that a client accepted before
reconf uses the flags from a listener post reconf.
- Commit:
ac796d32181ae09d4225fa5bf3598d4d54d2b8cf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix restart in listener
drop connections in the handshake phase: the listener from where
they've been accepted is now being replaced and its id is no more
meaningful. Clients for which we have already sent an auth request
are kept.
- Commit:
59d845219a6112f64530c82f61f611e5a1d81008
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop unused flag done for clients
- Commit:
2ab2c437c9ec8fe1c2fedae13799e508c66fea8f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove clients from the splay at the start of close_conn
- Commit:
057b5ab72f72be49038ae43aed7727cdb212bbb7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use serial ids and drop usage of arc4random
it's not so useful here and not (directly) used anywhere else.
- Commit:
4c0ae0c3cf2253e2e929fcb85c907f3a17116e1f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
listener: correctly swap config after reload
and don't forget to free the current config!