From patchwork Tue Nov 14 17:40:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aman Karmani X-Patchwork-Id: 6050 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.94 with SMTP id m30csp3605875jah; Tue, 14 Nov 2017 09:47:26 -0800 (PST) X-Google-Smtp-Source: AGs4zMYGzAJh31ifLtnAbGMRLuHc3hThG4E2dx0pBWj5S2Qyu9FolkkBZMLV9vVtdcwrKYBuGmMR X-Received: by 10.223.132.194 with SMTP id 60mr8777798wrg.249.1510681646387; Tue, 14 Nov 2017 09:47:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510681646; cv=none; d=google.com; s=arc-20160816; b=MomkO1ChOgPJzTchu/kejEcO4McLPh95zPbZfUnAvnpu5kKSVzP/q96efipyNbhLrg hqulr9yCJzO1MJNSBtzut+f0TGmdZNPXD5/g8Ewq6WCtviuliHMpnJycjdV58GMN5JZs oLibHAmcW+bb9TTU8rBV0EQNU5uwuyCIRbD6pYpk18JIG9iNcmAANeG2oEBFeR/M8XWw 4HXfx/e53h5lokytzS88QHTPWnMZgIrneaiN9Q9MCR1fOLISl7L5fck3mMA62ndnqC6A GbD3Zpt6h1mAVlU/BwAT0zNUW9bfMh49k94HjOXzfzfOBN24NNe9HMpGBT2E/Ie3Dtzk Y7Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=3RG5gULAvVJvOY9DYtVv3N4Xv1tnHbKQ84ADCpsVd98=; b=TUh/CaCIi7iAmMZpTVkqwEagHCc0S6ZgMspSgUNszvVJP6kXmctuSaJ4qb7lC39GB3 qoFHiZZmQ6EzT/VCveIDbwuQ4zagDGvWn86JQzRGWtIwehZ2bfLU3L6+mZ9pffHPKvHc emsS4IQuF8ZnN9yzLJs6bg1iCkgBKRCUBs5VSvOe8LqvYSzsLoPLqdYv11+VIEr3D5lH +45wQJeqYho7TuTkywt1qlqm+O8wV2V4hpiLbzwi3zjdnJyEWBtCufo2ZADGtvSYYpsR j+lZJGUoQftBvvYCRbQzNS11T2W8KV9rFonSbAASJgCVix/jvVOM0qpVDHGlEBQtJ1Rr 9AjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@tmm1-net.20150623.gappssmtp.com header.s=20150623 header.b=y6/isy40; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id b195si7795624wma.184.2017.11.14.09.47.25; Tue, 14 Nov 2017 09:47:26 -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=@tmm1-net.20150623.gappssmtp.com header.s=20150623 header.b=y6/isy40; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 15E5968A072; Tue, 14 Nov 2017 19:47:10 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E601168A057 for ; Tue, 14 Nov 2017 19:47:03 +0200 (EET) Received: by mail-pg0-f65.google.com with SMTP id 207so13101772pgc.12 for ; Tue, 14 Nov 2017 09:47:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tmm1-net.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=g2phEc6II0DK9qqXeDGMOyDnXab8rq8fF4BLsmjNB/g=; b=y6/isy40cBwZxkqcP2PCYuvJY4CJTAnJeQvztX7auh2ID4atRg5oxsAHQZPi4p0nfF 9OM6h45qdtTAfnFcN9X3BWOKtB9V1+53jbGe4/j+jm283n3AHCTymdu36PQcisEZUsqY JZAs/5YvJWRHljJYbi/d2lplHadNDa1Szd3fFwNG9vb2u3n/F63+rMm/g1t2ol+Ap8NR QkOdc3NE1/HV9lV11EPeqBTiTTKVu7rnZ3Zt1+RVH7HSdCjy5NR582MLDCJjy77o0zGF VMDNKMAPXmj/vTLFa4eUMiSjbee6IPJhYmYiCyQ7qMll6eE2D3kp97ZlZhoCHYkncLQp BmMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=g2phEc6II0DK9qqXeDGMOyDnXab8rq8fF4BLsmjNB/g=; b=DU1rc2/vA1LcpZRZ+KEcROk6bnnOEcFyhjcQvjeG9gLhUHRPJTtNBysY5+z1vPvAbM 1gJmSu6nr0az32OLgJrAO96OC2VUlXFYvwcjiFizb96aLWN3RoYAm0SDOqdvoj+TF8vj iGbPwkrnJ+f8fdkOXCqhqlVP20olqu2J7nKnhZhRn9Lo+XU6jMVcLZ6sIH7vBRGMSwbL yUCz0qc5sRBhb2o0XBz915S4r5T2wtptYkJXNwA3mTqw/fDje3mSzkUVTxQZlpiqAtbP dWwBOfsU5tvQUdvVabk1fecsc5rVSceqhbxpjlIXOk4IrzMq4d/mgcLRx3jyC9xomDjF zQAg== X-Gm-Message-State: AJaThX4pPSWnob42fr9ZNXbQU6/UdYd/Fo1yzIuolynJBqmVt1LxIh7Q xrdox6Q6YLRtJUN+jUAl6SuOZVM+ X-Received: by 10.98.209.8 with SMTP id z8mr14439812pfg.184.1510681264612; Tue, 14 Nov 2017 09:41:04 -0800 (PST) Received: from tmm1-imac.local.net (c-73-252-174-83.hsd1.ca.comcast.net. [73.252.174.83]) by smtp.gmail.com with ESMTPSA id r1sm15805723pfe.99.2017.11.14.09.41.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Nov 2017 09:41:04 -0800 (PST) From: Aman Gupta To: ffmpeg-devel@ffmpeg.org Date: Tue, 14 Nov 2017 09:40:59 -0800 Message-Id: <20171114174059.14555-2-ffmpeg@tmm1.net> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171114174059.14555-1-ffmpeg@tmm1.net> References: <20171114174059.14555-1-ffmpeg@tmm1.net> Subject: [FFmpeg-devel] [PATCH v2 2/2] avformat/{http, tls}: enable tcp_nodelay 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: kjeyapal@akamai.com, Aman Gupta MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Aman Gupta Signed-off-by: Aman Gupta --- libavformat/http.c | 1 + libavformat/tls.c | 1 + 2 files changed, 2 insertions(+) diff --git a/libavformat/http.c b/libavformat/http.c index 056d5f6583..f0a80b7add 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -468,6 +468,7 @@ static int http_listen(URLContext *h, const char *uri, int flags, NULL); if ((ret = av_dict_set_int(options, "listen", s->listen, 0)) < 0) goto fail; + av_dict_set_int(options, "tcp_nodelay", 1, 0); if ((ret = ffurl_open_whitelist(&s->hd, lower_url, AVIO_FLAG_READ_WRITE, &h->interrupt_callback, options, h->protocol_whitelist, h->protocol_blacklist, h diff --git a/libavformat/tls.c b/libavformat/tls.c index 10e0792e29..a56f51f85b 100644 --- a/libavformat/tls.c +++ b/libavformat/tls.c @@ -104,6 +104,7 @@ int ff_tls_open_underlying(TLSShared *c, URLContext *parent, const char *uri, AV proxy_port, "/%s", dest); } + av_dict_set_int(options, "tcp_nodelay", 1, 0); return ffurl_open_whitelist(&c->tcp, buf, AVIO_FLAG_READ_WRITE, &parent->interrupt_callback, options, parent->protocol_whitelist, parent->protocol_blacklist, parent);