From patchwork Thu Oct 18 09:26:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jeyapal, Karthick" X-Patchwork-Id: 10706 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id B88DF446E76 for ; Thu, 18 Oct 2018 12:26:39 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1BE4968A599; Thu, 18 Oct 2018 12:26:21 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from a1i390.smtp2go.com (a1i390.smtp2go.com [43.228.185.134]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B4EFC68A57F for ; Thu, 18 Oct 2018 12:26:14 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpservice.net; s=m78bu0.a1-4.dyn; x=1539855705; h=Feedback-ID: X-Smtpcorp-Track:Message-Id:Date:Subject:To:From:Reply-To:Sender: List-Unsubscribe; bh=1EXJcBrp4s3tGLSu+e/Lv0OE/skd9DFExOjORAtM2es=; b=UFbjHkuC 1ute/Ij10a4bZ19pinJNT+QFpuoOouLnpv+hGIZcVxT7PdzhbOJCkf3XZKDbYaAfXspTJHxgeSAx/ C4UBbkKK+GyNFOw33BGNlNC1NvQJFcJW4Ntc00/Tb5+UE1OlWJwn+24g3JuDgyddZ5KkSxMFoumIB fhBkIjNgM2C+917U2VNXtqJq/LC+4KmcTG/15W94NyuSB7UxewHCaI6pfGU0IGaQuDUlTGsSo3JWI GQPeaXbHmqmeUL91nmoy9rHtXLIfI7oq5QFx6KiOn+9y7yIGCep3APGkJSrMqYOAd4FMjKc2z/y/c 2dpXERYj0BCMlKtMX0YS0fYbNA==; Received: from [10.45.79.71] (helo=SmtpCorp) by smtpcorp.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1gD4Zh-Itk9HE-P1; Thu, 18 Oct 2018 09:26:37 +0000 Received: from [10.125.17.166] (helo=gmail.com) by smtpcorp.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1gD4Zg-Duufd3-KG; Thu, 18 Oct 2018 09:26:37 +0000 Received: from gmail.com (localhost [127.0.0.1]) by gmail.com (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id w9I9QVRJ004859; Thu, 18 Oct 2018 14:56:31 +0530 Received: (from akamai@localhost) by gmail.com (8.14.4/8.14.4/Submit) id w9I9QVdH004858; Thu, 18 Oct 2018 14:56:31 +0530 From: Karthick J To: ffmpeg-devel@ffmpeg.org Date: Thu, 18 Oct 2018 14:56:20 +0530 Message-Id: <1539854780-4820-1-git-send-email-kjeyapal@akamai.com> X-Mailer: git-send-email 1.9.1 X-Smtpcorp-Track: 1gD4ZgDIIfd3KG.yUHNXUBku Feedback-ID: 337386m:337386asVRLGB:337386swmRhpQGFg X-Report-Abuse: Please forward a copy of this message, including all headers, to Subject: [FFmpeg-devel] [PATCH] avformat/dashenc: URL close unconditionally after DELETE segments X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Karthick J MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Fixes bug with HTTP DELETE when HTTP Persistent is ON. Right now, HTTP Persistent connections is supported only for POSTs and PUTs. HTTP DELETE will still open a new connection every time. --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 15b84a0f3b..b0a59af3ee 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -1253,7 +1253,7 @@ static void dashenc_delete_file(AVFormatContext *s, char *filename) { } av_dict_free(&http_opts); - dashenc_io_close(s, &out, filename); + ff_format_io_close(s, &out); } else if (unlink(filename) < 0) { av_log(s, AV_LOG_ERROR, "failed to delete %s: %s\n", filename, strerror(errno)); }