Age | Commit message (Collapse) | Author |
|
On OpenBSD closing a connection will result in a read even (POLLIN) while
on Linux POLLHUP is returned. rrdp_data_handler()'s read() call returns
in both cases 0 and finishes the XML parsing.
Found and fix tested by job@, OK deraadt@
|
|
adding a delta to the queue. If the session_id differs there is no
need for deltas since a snapshot must be fetched.
OK job@ benno@ deraadt@
|
|
EXTRACT_LE_32BITS() converts the type from little endian to host
endian. So we need the constants in host endianess. This fixes
regress/sys/net/wg.
OK deraadt@ sthen@
|
|
ok claudio@
|
|
delivery part but don't alter the http_connection anymore.
Also move common code in the connect case into a new function and call it
from connect and finish connect.
OK benno@
|
|
deleted filepath set. A file can only be in one set (deleted or added)
but not on both.
OK benno@
|
|
expat my either use unsigned long or unsigened long long as return value
depending on compile options. This upcast is an easy way around this issue.
OK deraadt@
|
|
|
|
|
|
Some vestigial code left over from when priv-sep was implemented.
ok mlarkin@
|
|
|
|
ok tb@
|
|
sure deraadt@
|
|
ok tb@
|
|
mix 'listen * port 80' and 'listen * tls port 443' in one server block.
Also the last argument of server_tls_cmp - match_keypair - is always 0
so remove this code.
OK florian@ tb@ some long time ago
|
|
|
|
ok tb@
|
|
until an error or an IO opperation is needed. In other words it should not
return 0. Because of this adjust the http_tls_connect() call a bit. Also
call http_connect() in http_redirect() instead of needing an extra step
in the state machine. Last but not least make sure that http_handle() does
only one IO operation and check for possible POLLHUP event.
OK tb@
|
|
This removes some of the needs of rpki-client affiniadios who
screen-scrape rpki-client's STDOUT.
OK deraadt@
|
|
RRDP URLs.
|
|
handle both cases. Simplifies the code a fair bit.
OK tb@
|
|
|
|
and then accept new ones. This way there is no risk of processing a new
connection before poll() was called.
OK tb@ as part of a larger diff
|
|
No functional change.
|
|
the conn->res pointer after calling freeaddrinfo().
OK tb@ (as part of a bigger diff)
|
|
waitpid() and print if they exited non-zero or by a signal. Also adjust
the poll hangup case to exit the poll loop instead of erroring out. This
way a crashed child should be reported before exit.
OK job@ tb@
|
|
|
|
OK claudio@
|
|
ok kn
|
|
this is caused by a SIGPIPE. So add a handler that will abort the process
and dump core.
OK deraadt@
|
|
|
|
|
|
address if available. No other tools consider bind() errors as non-fatal
warnings so rpki-client should not behave different.
OK tb@
|
|
work dir. So unlink can return an ENOENT error for the main repo. In
which case the temp dir should be tried.
Refactor this code a bit since there is no way rrdp_filename() should
fail in this part of the code.
OK tb@
|
|
Its caller doesn't use the return value so zap it. Also zap tentative
error handling in the caller. ok kn@
|
|
|
|
ok kn@
|
|
apm(8) never got the result of the requested power action carried out by
apmd(8), so apm(4) errors got silently discarded; for example, zzz(8)
would merely print "Suspending system..." and exit zero on platforms
lacking suspend/resume support.
Enrich reply messages from apmd to apm with an error field containing the
failed ioctl(2)'s errno if need be.
Hoist apmd's power action dispatch into handle_client() so it can write the
error in the first place before replying.
OK dv
|
|
|
|
|
|
|
|
let the code progress to set the state to RRDP_STATE_PARSE_DONE and
call rrdp_finished() since this transfer is over.
Should fix a hang seen by deraadt@
OK tb@
|
|
|
|
ok claudio
|
|
getaddrinfo(3). Most notable change is the error reporting.
Do not warn if cause is not set. In this case the last connect attempt
failed but there is no alternate address to use. Since that error was
already logged there is no need for an extra warning here.
OK job@
|
|
there is not quite right.
OK job@
|
|
pipe to the main process.
OK job@
|
|
original issue and text from laurence tratt, with updates from raf czlonka
|
|
The bsd.rd ramdisk now ships gzip'd on amd64. Use libz in base to
transparently handle decompression of any compressed kernel images.
Patch from Josh Rickmar.
ok kn@
|
|
belongs to the listener, and should not be freed with that session if
an error occurs before. Unlink it from the session early in the accept
callback to avoid this.
tweaks and ok millert@
|