rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
* Close body object after socket hijacking or not?
@ 2015-02-02 21:26 Hongli Lai
  2015-04-17 20:43 ` Eric Wong
  0 siblings, 1 reply; 7+ messages in thread
From: Hongli Lai @ 2015-02-02 21:26 UTC (permalink / raw)
  To: rack-devel


[-- Attachment #1.1: Type: text/plain, Size: 1224 bytes --]

Some users are experiencing problems with Rack::Lock and socket hijacking 
in combination with some servers, such as Phusion Passenger. They've 
noticed that when Rack::Lock is used in a request that hijacks the socket, 
the next request fails with "deadlock; recursive locking" inside Rack::Lock.

I've posted the results of my investigation 
here: https://github.com/ngauthier/tubesock/issues/10#issuecomment-72539461. 
But the bottom line is that different servers handle the response body 
object differently in the face of socket hijacking.

So I'd like to have clarification on the following question: are servers 
supposed to call #close on the body object or not, after the request as 
been hijacked? The way the specification is currently written is ambiguous. 
It seems to imply that servers must only call #close on the body object if 
the request was partially hijacked, but not when the request was fully 
hijacked.

-- 

--- 
You received this message because you are subscribed to the Google Groups "Rack Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rack-devel+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1455 bytes --]

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

end of thread, other threads:[~2015-06-28 20:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-02 21:26 Close body object after socket hijacking or not? Hongli Lai
2015-04-17 20:43 ` Eric Wong
2015-05-29 14:09   ` Hongli Lai
2015-06-04  2:11     ` Eric Wong
2015-06-04  6:53       ` Hongli Lai
2015-06-04 12:38         ` Marc-André Cournoyer
2015-06-28 20:46           ` James Tucker

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