unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* Is Rack partial hijack supported?
@ 2022-08-29  5:56 Samuel Williams
  2022-08-29  6:42 ` Eric Wong
  0 siblings, 1 reply; 5+ messages in thread
From: Samuel Williams @ 2022-08-29  5:56 UTC (permalink / raw)
  To: unicorn-public

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"
    stream.close
  end
  
  return [200, {'rack.hijack' => callback}, nil]
else
  [404, {}, []]
end

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

Kind regards,
Samuel


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-09-01 21:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-29  5:56 Is Rack partial hijack supported? Samuel Williams
2022-08-29  6:42 ` Eric Wong
2022-08-29  7:19   ` Samuel Williams
2022-08-29  8:14     ` Eric Wong
2022-09-01 21:53       ` Eric Wong

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