From: Eric Wong <e@80x24.org> To: yahns-public@yhbt.net Subject: [PATCH 4/2] wbuf_lite: clear @busy flag when re-arming Date: Thu, 21 Jul 2016 00:57:07 +0000 [thread overview] Message-ID: <20160721005707.GA20577@dcvr> (raw) In-Reply-To: <20160719222437.23103-1-e@80x24.org> This allows us to speed up subsequent calls to wbuf_write when the client socket buffers are cleared. This doesn't affect functionality outside of performance. --- lib/yahns/wbuf_lite.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/yahns/wbuf_lite.rb b/lib/yahns/wbuf_lite.rb index 7d77da9..46da501 100644 --- a/lib/yahns/wbuf_lite.rb +++ b/lib/yahns/wbuf_lite.rb @@ -90,6 +90,7 @@ def wbuf_close(client) # the req_res socket itself could be completely drained of readable # data and just waiting for another request (which we don't support, yet) if @req_res + @busy = false client.hijack_cleanup Thread.current[:yahns_queue].queue_mod(@req_res, Yahns::Queue::QEV_WR) return :ignore -- EW
prev parent reply other threads:[~2016-07-21 0:57 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-07-19 22:24 [PATCH] ANOTHER round of proxy_pass fixes Eric Wong 2016-07-19 22:24 ` [PATCH 1/2] wbuf_lite: prevent clobbering responses Eric Wong 2016-07-19 22:24 ` [PATCH 2/2] wbuf_lite: unify EOF error handling Eric Wong 2016-07-20 22:40 ` [PATCH 3/2] wbuf_lite: reset sf_offset/sf_count consistently Eric Wong 2016-07-21 0:57 ` Eric Wong [this message]
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/yahns/README * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20160721005707.GA20577@dcvr \ --to=e@80x24.org \ --cc=yahns-public@yhbt.net \ --subject='Re: [PATCH 4/2] wbuf_lite: clear @busy flag when re-arming' \ /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
Code repositories for project(s) associated with this inbox: ../../yahns.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).