Commits
- Commit:
20f7a94e1890facb6e7f1a12acf4cf5e1e8de977
- From:
- Omar Polo <op@omarpolo.com>
- Date:
work around missing LOGIN_NAME_MAX
Both Linux and OpenBSD have LOGIN_NAME_MAX available when including
limits.h, FreeBSD, Darwin and possibly others don't.
FreeBSD (and maybe Darwin) have MAXLOGNAME, so try to use that if
available. Otherwise use _POSIX_LOGIN_NAME_MAX, but only has a fallback
since it has a lower value (9 at the time of writing).
If everything fails, use 32 which is what OpenBSD use by default;
OpenSMTPd also defaults to it.
See also github issue #1
- 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:
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:
d5207cf4a6d77f8a7f5c61b20c0e02a50a2e1770
- From:
- Omar Polo <op@omarpolo.com>
- Date:
export clear_config from parse.y
- Commit:
153242382f5df51f5b773527f2b270eceb1e0dbf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
retire now unused IMSG_CONTROLFD
- Commit:
a80d2bca13974bb0fe9dab49a777c3fe05abf543
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move control to the main process
We may want to be able to run multiple listener process eventually, so
the first step is to drop IMSG_CONTROLFD and keep the ctl stuff in the
main process.
- Commit:
1e84c7b793afb2f25b7515283340a1f730290c3c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify client proc bootstrap
Drop the IMSG_AUTH_DIR imsg type and stuff everything in a struct
kd_auth_proc that gets sent via IMSG_AUTH. Tweak the necessary bits to
compile. While here also start documenting what data we send over which
imsg.
As an added benefit, now we're sending fixed-size messages instead of
variable length strings.
- Commit:
35c6cd0e100a9bf0cc9354f261b656d497fa34cd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move table definitions to table.h
- Commit:
fb1a36c0a6028fb69d26ed62cafee077a0c345ce
- From:
- Omar Polo <op@omarpolo.com>
- Date:
restructure project and switch build system
use by default the OpenBSD mk infrastructure to build and test all the
kamid components.