unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Samuel Williams <samuel@oriontransfer.net>
To: unicorn-public@yhbt.net
Subject: Is Rack partial hijack supported?
Date: Mon, 29 Aug 2022 17:56:26 +1200	[thread overview]
Message-ID: <B9DAECE5-D139-44E5-A442-9FAF3E2A920B@oriontransfer.net> (raw)

Hi Eric,

I’ve been testing Rack server conformance and behaviour and noticed that while unicorn advertises `env[‘rack.hijack?’]` as true, it fails to correctly stream the following response:

if env['rack.hijack?']
  callback = proc do |stream|
    stream.write "Hello World"
  return [200, {'rack.hijack' => callback}, nil]
  [404, {}, []]

Am I misunderstanding something about how this should work or does Unicorn not support partial hijack?

Kind regards,

             reply	other threads:[~2022-08-29  5:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-29  5:56 Samuel Williams [this message]
2022-08-29  6:42 ` Is Rack partial hijack supported? Eric Wong
2022-08-29  7:19   ` Samuel Williams
2022-08-29  8:14     ` Eric Wong
2022-09-01 21:53       ` Eric Wong

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:

  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=B9DAECE5-D139-44E5-A442-9FAF3E2A920B@oriontransfer.net \
    --to=samuel@oriontransfer.net \
    --cc=unicorn-public@yhbt.net \


* 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


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).