]> granicus.if.org Git - curl/commit
pause: handle mixed types of data when paused
authorDaniel Stenberg <daniel@haxx.se>
Mon, 27 Mar 2017 10:14:57 +0000 (12:14 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 28 Mar 2017 11:27:49 +0000 (13:27 +0200)
commit452203341d6e97b8f52f9a886046d9fdb96346a9
treec5aa7fa5e29da5a1799123703be46f28d0491fc1
parent7975d10cf8a3fe9b35867509b9ef10d06614eb3a
pause: handle mixed types of data when paused

When receiving chunked encoded data with trailers, and the write
callback returns PAUSE, there might be both body and header to store to
resend on unpause. Previously libcurl returned error for that case.

Added test case 1540 to verify.

Reported-by: Stephen Toub
Fixes #1354
Closes #1357
lib/easy.c
lib/multi.c
lib/sendf.c
lib/urldata.h
tests/data/Makefile.inc
tests/data/test1540 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib1540.c [new file with mode: 0644]