3

I have Faye ruby server as rack app. I starts it with Puma. In Puma's output I see the next

127.0.0.1 - - [10/Apr/2015 15:32:37] "POST /faye HTTP/1.1" HIJACKED -1 0.0059

What does it mean and how can I avoid this? If I use Thin I have nothing like this.

Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140
user3309314
  • 2,453
  • 2
  • 17
  • 30

2 Answers2

4

This means that the Rack Socket Hijacking Protocol is used. Not sure why it isn't used with Thin, or maybe, Thin just doesn't log it.

Jörg W Mittag
  • 363,080
  • 75
  • 446
  • 653
  • Thin normally uses a different method where new Rack would use socket hijacking. Thin is the original EventMachine-based app server, and does it that way. – Noah Gibbs Apr 13 '15 at 23:14
1

As Jorg says, this means it's using socket hijacking. That's not a bad thing, and not a problem. You should expect it when using Faye or any other Comet or long-polling method of pushing content to the browser.

Noah Gibbs
  • 765
  • 3
  • 10