Skip to content

http: minor improvements

Tay Ray Chuan git 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 1 replyIn review
  2. v17 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- patch 3: don't say "remove condition", since we're actually enabling

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7t5541-http-push: check that ref is unchanged for non-ff testt/t5541-http-push.sh+4 -20 replies
2/7t554[01]-http-push: refactor, add non-ff testst/lib-httpd.sh t/t5540-http-push.sh t/t5541-http-push.sh+34 -220 replies
3/7http-push: remove "|| 1" to enable verbose checkhttp-push.c+1 -10 replies
4/7http-walker: cleanup more thoroughlyhttp-walker.c+17 -00 replies
5/7http: init and cleanup separately from http-walkerhttp-fetch.c http-walker.c remote-curl.c +1 more+12 -80 replies
6/7remote-curl: use http_fetch_ref() instead of walker wrapperremote-curl.c+1 -20 replies
7/7remote-curl: init walker only when neededremote-curl.c+3 -100 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchClemens Buchacher
SeriesA-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/7] http: minor improvements

This patch series was generated on top of 'next'. It contains some general changes to http usage.

Some highlights:
- add non-ff test cases to "dumb" http push test
- separate init and cleanup of http from http-walker

Changes from v1 (based on comments from Clemens):
- patch 3: don't say "remove condition", since we're actually enabling

    it.
  - patch 5: in keeping with separating http and http-walker, removed
    http_cleanup() from http-walker->cleanup().

- patch 5: move http_cleanup() call after http-walker->cleanup(). This isn't really needed, but do this just in case http-walker->cleanup() does any http operations.

Contents:

[PATCH v2 1/7] t5541-http-push: check that ref is unchanged for non-ff test [PATCH v2 2/7] t554[01]-http-push: refactor, add non-ff tests [PATCH v2 3/7] http-push: remove "|| 1" to enable verbose check [PATCH v2 4/7] http-walker: cleanup more thoroughly
[PATCH v2 5/7] http: init and cleanup separately from http-walker [PATCH v2 6/7] remote-curl: use http_fetch_ref() instead of walker wrapper [PATCH v2 7/7] remote-curl: init walker only when needed

 http-fetch.c         |    5 ++++-
 http-push.c          |    2 +-
 http-walker.c        |   21 +++++++++++++++++----
 remote-curl.c        |   21 +++++++++------------
 t/lib-httpd.sh       |   29 +++++++++++++++++++++++++++++
 t/t5540-http-push.sh |    3 +++
 t/t5541-http-push.sh |   22 ++--------------------
 walker.h             |    2 +-
 8 files changed, 66 insertions(+), 39 deletions(-)

--
Cheers,
Ray Chuan