From: Eric Wong <normalperson@yhbt.net>
To: Dirkjan Bussink <dbussink@github.com>
Cc: John Crepezzi <seejohnrun@github.com>,
Kevin Sawicki <kevinsawicki@github.com>,
unicorn-public@yhbt.net
Subject: [PATCH] http_request: drop unnecessary #clear call
Date: Sat, 13 Mar 2021 02:31:31 +0000 [thread overview]
Message-ID: <20210313023131.GA10724@dcvr> (raw)
In-Reply-To: <20210313022615.GA32198@dcvr>
Also noticed #clear is unnecessary, now
------------8<-----------
Subject: [PATCH] http_request: drop unnecessary #clear call
Since we allocate a new request object for each request,
the #clear call is now unnecessary
---
lib/unicorn/http_request.rb | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb
index 6ca4592..e3ad592 100644
--- a/lib/unicorn/http_request.rb
+++ b/lib/unicorn/http_request.rb
@@ -62,7 +62,6 @@ def self.check_client_connection=(bool)
# This does minimal exception trapping and it is up to the caller
# to handle any socket errors (e.g. user aborted upload).
def read(socket)
- clear
e = env
# From https://www.ietf.org/rfc/rfc3875:
next prev parent reply other threads:[~2021-03-13 2:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <F6712BF3-A4DD-41EE-8252-B9799B35E618@github.com>
[not found] ` <20210311030250.GA1266@dcvr>
[not found] ` <7F6FD017-7802-4871-88A3-1E03D26D967C@github.com>
2021-03-12 9:41 ` Potential Unicorn vulnerability Eric Wong
2021-03-12 11:14 ` Dirkjan Bussink
2021-03-12 12:00 ` Eric Wong
2021-03-12 12:24 ` Dirkjan Bussink
2021-03-13 2:26 ` Eric Wong
2021-03-13 2:31 ` Eric Wong [this message]
2021-03-16 10:15 ` Dirkjan Bussink
2021-03-16 10:31 ` Eric Wong
2021-03-17 8:03 ` Dirkjan Bussink
2021-03-17 8:47 ` Eric Wong
2021-03-19 13:55 ` Dirkjan Bussink
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/unicorn/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210313023131.GA10724@dcvr \
--to=normalperson@yhbt.net \
--cc=dbussink@github.com \
--cc=kevinsawicki@github.com \
--cc=seejohnrun@github.com \
--cc=unicorn-public@yhbt.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).