Message ID | 6222559C-0E4F-41EB-8082-A2B729992C0D@akamai.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.94 with SMTP id m30csp4809508jah; Mon, 20 Nov 2017 21:16:23 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ/6t4RY8mJhk9WQS328UboYag0o238t7D6+mJpXxGhBz3F7mmolz+UJ8wExeaZW6yd7o+b X-Received: by 10.223.134.1 with SMTP id 1mr12459123wrv.213.1511241382909; Mon, 20 Nov 2017 21:16:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511241382; cv=none; d=google.com; s=arc-20160816; b=xvPuvNOrOaCtyydMxTxsio327ixbl0LKjxge6lk2QegvM8QKFvdqMQ9vZGuQT2y4tD uX5ZRSOSuwd5OpykXltV7T6t+yr6aBSkQk6KzX4i8wEECAEmnbmixurjjl1BGEA5cLX7 IOlom1weXhrN2vK2LWyCN/HQe2Msw3u7bROdzre79vVKR57r43GEUoVLVOrsMMawQCyB kRedQRhKXPXbFkLOYyABFFcI42IFSL+2/LT1Yysj4XrEnW6s48Ah/TTxXbQwjAHE6EuX 18T8r6uXdvZzMqFTmq5+qzpGeaYarhn5j13v/h9RhzRGc9h2fEJxg7NpiK61apgd0aoS RLbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:content-language:accept-language:message-id:date :thread-index:thread-topic:to:from:dkim-signature:delivered-to :arc-authentication-results; bh=o9Ysei44nRnV8Mz3Q11CQXYIX2fuv3Pe92z1vMO6WWQ=; b=B99HFnkaPEEd5Z0AQ75+/4Db0s127rfAcic1Vwxv0BCQAneSIuP+6G8d8KbDGvyU9I VgRDuIGXC1hih7tFQh6x5cRZO/v7ZVNkAzWif2qlsxQIhE4SZiQ5PpBKrF7uavTTpobu NC439ui8fZ084EoM9Q9TDK+N0CJnCMXXl3IL/6JKGcu609CvJ3IcQyck/NeosbsgVkN3 umup0kgHz+nqY2hrNtTTfvx1pzGdswGWMCv/cyAnPghe7LDI7Hez4LLXlROGZaAwEYnG //BiWJ6mgi7Ixk7id6W6gda780rTpQgfODdKJ8rqT/KvcSU1BIjos+SxDFNmzYQjJw1z 1Vkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@akamai.com header.s=jan2016.eng header.b=dw/UP0Rp; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=akamai.com Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id t9si5460547wra.449.2017.11.20.21.16.22; Mon, 20 Nov 2017 21:16:22 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@akamai.com header.s=jan2016.eng header.b=dw/UP0Rp; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=akamai.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 651B7689DAC; Tue, 21 Nov 2017 07:16:03 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mx0a-00190b01.pphosted.com (mx0a-00190b01.pphosted.com [67.231.149.131]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 82D546806E6 for <ffmpeg-devel@ffmpeg.org>; Tue, 21 Nov 2017 07:15:56 +0200 (EET) Received: from pps.filterd (m0050093.ppops.net [127.0.0.1]) by mx0a-00190b01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vAL5DeTP019817 for <ffmpeg-devel@ffmpeg.org>; Tue, 21 Nov 2017 05:16:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akamai.com; h=from : to : subject : date : message-id : content-type : mime-version; s=jan2016.eng; bh=ulFnEeCrhfeTQCaQo1LCotwRYsl5UvY2inULGhxrRqg=; b=dw/UP0RprIgYLL5rv/rtiipZxDuXJIYIIwbTxYBYQ02kyFjQAbf1OkY3Pig1On8KstfX uhvjiZgUdNOZNcbMQNVinIYAAJVVBsxl5GYpQRyC8p2fyzpqK1ATkpBJjNpJo5OYNHox JtoFWfVddVC7EJd3t5HUCdRrnz3GOWdVuhybgHNqJ62WwQGDcHgC8C5NJwZx2eWnEGau yCdHMdTRxl9uTlM42xM0yyiJEUbn3kk07X+bf2mHDR0eCAxpvFVox/vIXfRarb0zTnCR 1SBoACS70bAgnYuAq032BCdiu3G/p+TfH0fuIBMfSX+je5f2ZdHKjuN0jGZQ/QRA73Jq TA== Received: from prod-mail-ppoint3 ([96.6.114.86]) by m0050093.ppops.net-00190b01. with ESMTP id 2ead0r0yn5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <ffmpeg-devel@ffmpeg.org>; Tue, 21 Nov 2017 05:16:12 +0000 Received: from pps.filterd (prod-mail-ppoint3.akamai.com [127.0.0.1]) by prod-mail-ppoint3.akamai.com (8.16.0.21/8.16.0.21) with SMTP id vAL5FqQ0025767 for <ffmpeg-devel@ffmpeg.org>; Tue, 21 Nov 2017 00:16:11 -0500 Received: from email.msg.corp.akamai.com ([172.27.155.31]) by prod-mail-ppoint3.akamai.com with ESMTP id 2eah316f8b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for <ffmpeg-devel@ffmpeg.org>; Tue, 21 Nov 2017 00:16:10 -0500 Received: from ASIN1EX-DAG2MB2.msg.corp.akamai.com (172.27.155.102) by asin1ex-dag2mb1.msg.corp.akamai.com (172.27.155.101) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 21 Nov 2017 10:46:05 +0530 Received: from ASIN1EX-DAG2MB2.msg.corp.akamai.com ([172.27.155.102]) by asin1ex-dag2mb2.msg.corp.akamai.com ([172.27.155.102]) with mapi id 15.00.1263.000; Tue, 21 Nov 2017 10:46:05 +0530 From: "Jeyapal, Karthick" <kjeyapal@akamai.com> To: "ffmpeg-devel@ffmpeg.org" <ffmpeg-devel@ffmpeg.org> Thread-Topic: [PATCH v2 2/3] libavformat/http: Handled multiple_requests option during write Thread-Index: AQHTYofUH1PzybxdEUeciGF/G4+SRQ== Date: Tue, 21 Nov 2017 05:16:05 +0000 Message-ID: <6222559C-0E4F-41EB-8082-A2B729992C0D@akamai.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [172.19.216.235] Content-Type: multipart/mixed; boundary="_002_6222559C0E4F41EB8082A2B729992C0Dakamaicom_" MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-11-21_01:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1711210072 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-11-21_01:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1711210071 Subject: Re: [FFmpeg-devel] [PATCH v2 2/3] libavformat/http: Handled multiple_requests option during write X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <http://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <http://ffmpeg.org/pipermail/ffmpeg-devel/> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <http://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> |
diff --git a/libavformat/http.c b/libavformat/http.c index 056d5f6..45c0e72 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -171,6 +171,7 @@ static int http_connect(URLContext *h, const char *path, const char *local_path, const char *hoststr, const char *auth, const char *proxyauth, int *new_location); static int http_read_header(URLContext *h, int *new_location); +static int http_shutdown(URLContext *h, int flags); void ff_http_init_auth_state(URLContext *dest, const URLContext *src) { @@ -306,6 +307,10 @@ int ff_http_do_new_request(URLContext *h, const char *uri) AVDictionary *options = NULL; int ret; + ret = http_shutdown(h, h->flags); + if (ret < 0) + return ret; + s->chunkend = 0; s->off = 0; s->icy_data_read = 0;