summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/http.c
AgeCommit message (Expand)Author
2023-05-10Reset the io_time (io timeout value) when the timer expires. Without thisClaudio Jeker
2022-11-02Introduce conn_info() which combines http_info() and ip_info() to outputClaudio Jeker
2022-11-02Don't free the addrinfo array after connect and refactor http_finish_connect.Claudio Jeker
2022-11-02Also print IP address of the connection that timed out to aid debuggingJob Snijders
2022-10-18Copy port to proxyport since the sting may point into memory that isClaudio Jeker
2022-09-20Reword comment, no functional changeClaudio Jeker
2022-09-09Adjust chunked encoding handling.Claudio Jeker
2022-09-08In http_get_line() additionally strip any trailing space or tab from lines.Claudio Jeker
2022-09-08Adjust HTTP header parsing to follow RFC more closely.Claudio Jeker
2022-08-30Avoid leak in proxy_parse_uri()Theo Buehler
2022-08-09Make the http code respect MAX_CONN_TIMEOUT and fail connects once theyClaudio Jeker
2022-08-08Unify the maximum idle IO timeout for RSYNC & HTTPSJob Snijders
2022-05-24While not strictly required clear all pfds in the poll loop and not justClaudio Jeker
2022-05-24Introduce MAX_HTTP_REQUESTS and MAX_RSYNC_REQUESTS.Claudio Jeker
2022-05-15More KNF and whitespace fixes.Theo Buehler
2022-05-15whitespace spotted during read-thruTheo de Raadt
2022-05-04Remove extra empty lineClaudio Jeker
2022-04-20more whitespace cleanupsTheo de Raadt
2022-04-20Fix various annoying whitespace errors.Theo Buehler
2022-04-11Refactor on how the subprocesses are started.Claudio Jeker
2022-03-11Fix overflow protection check in the poll loop. The check needs to happenClaudio Jeker
2022-02-10Free conn->last_modified before overwriting it with strdup().Theo Buehler
2022-01-23Handle EINTR the same way in all poll loops. In all cases restart theClaudio Jeker
2021-12-22Replace two questionable size_t types. For the repo id use a unsigned intClaudio Jeker
2021-11-10Sync the encoding functions for URI with the version of ftp(1)Claudio Jeker
2021-11-09Implementation of HTTP Keep-Alive sessions introduced a regression forClaudio Jeker
2021-11-04Move and promote getmonotime() to an internal API function.Claudio Jeker
2021-11-03For chunked encoding on switch to STATE_RESPONSE_CHUNKED_TRAILER whenClaudio Jeker
2021-10-29Limit the HTTP requests to 2GB of data. This is enforced via a quickClaudio Jeker
2021-10-23Rename io_buf_new to io_new_buffer and io_buf_close to io_close_buffer.Claudio Jeker
2021-10-23Finnally move away from blocking reads in rpki-client. The code was aClaudio Jeker
2021-10-22First step of cleanup in the io land. Introduce io_buf_new() andClaudio Jeker
2021-10-05Remove some extra spacesClaudio Jeker
2021-10-05The HTTP chunked transfer encoding test in regress/usr.sbin/rpki-client/libresslAnton Lindqvist
2021-09-23Plug leaks of buf flagged by LLVM scan-build.Theo Buehler
2021-09-10Properly handle keep-alive for HTTP/1.1. If the server uses HTTP/1.1Claudio Jeker
2021-09-01Fix bad logic I introduced before commit.Claudio Jeker
2021-09-01Add http_proxy support to rpki-client's http handler.Claudio Jeker
2021-08-09Check for URI with userinfo parts (hostname has an @ sign) and fail forClaudio Jeker
2021-08-04Improve HTTP status handling. Allow 203 as an alternative to 200 OK.Claudio Jeker
2021-07-23Adjust HTTP/1.1 request stringjob
2021-05-10To add keep-alive support the read handler got changed a lot. Now whenClaudio Jeker
2021-04-20Add keep-alive support to the HTTP module.Claudio Jeker
2021-04-19code review results in KNF, and moving local variables into lowest scopeTheo de Raadt
2021-04-15Reshuffle and reindent code. No functional change.Claudio Jeker
2021-04-15Rework the http code to require poll() only when really needed.Claudio Jeker
2021-04-13Adjust http_done() the be more like http_fail() -- only do the messageClaudio Jeker
2021-04-09Tidy up the http state machine a bit. Make sure that http_nextstate() runsClaudio Jeker
2021-04-08Increase buffer size for http_info a bit. 64 chars is a bit short forClaudio Jeker
2021-04-08Refactor the regular and chunked data write so that one function canClaudio Jeker