Git fork on faye issue

44 views
Skip to first unread message

Jorge Osorio

unread,
May 17, 2013, 1:08:54 PM5/17/13
to faye-...@googlegroups.com
Hi,

I do a fork on git for faye, so i do the development steps, and i use it on my vendor folder. everything works except one thinkg. when i send a handshake the server doesn't response.

Curl example:

curl "http://0.0.0.0:9292/messages?message=%5B%7B%22channel%22%3A%22%2Fmeta%2Fhandshake%22%2C%22version%22%3A%221.0%22%2C%22supportedConnectionTypes%22%3A%5B%22callback-polling%22%5D%2C%22id%22%3A%221%22%7D%5D&jsonp=__jsonp1__" -H "Accept: */*" -H "Referer: http://0.0.0.0:5000/" -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31"

curl: (52) Empty reply from server

=== I have tracked the server using incoming, outgoing extensión and it recieve this: (But response never come back to client)

incoming
12:06:45 faye.1 | {"channel"=>"/meta/handshake", "version"=>"1.0", "supportedConnectionTypes"=>["callback-polling"], "id"=>"1"}

outgoing
12:06:45 faye.1 | {"id"=>"1", "channel"=>"/meta/handshake", "successful"=>true, "version"=>"1.0", "supportedConnectionTypes"=>["long-polling", "cross-origin-long-polling", "callback-polling", "websocket", "eventsource", "in-process"], "advice"=>{"reconnect"=>"handshake"}}

James Coglan

unread,
May 17, 2013, 1:38:11 PM5/17/13
to faye-...@googlegroups.com
On 17 May 2013 18:08, Jorge Osorio <jorge.os...@gmail.com> wrote: 
I do a fork on git for faye, so i do the development steps, and i use it on my vendor folder. everything works except one thinkg. when i send a handshake the server doesn't response.

What is the exact set of steps you're running to build and boot the Faye server? 

Jorge Osorio

unread,
May 17, 2013, 1:42:19 PM5/17/13
to faye-...@googlegroups.com
Hi thanks for the reply:

I do this:

# Download the code from Git
git clone git://github.com/faye/faye.git
cd faye
git submodule update --init --recursive

# Install dependencies
bundle install
npm install

# Build Faye
bundle exec jake

# Run tests
bundle exec rspec -c spec/
node spec/node.js

# Install Ruby gem
gem build faye.gemspec
gem install faye-x.x.x.gem

# Install NPM package
npm install build
everything pass OK.

I running it with foreman:

web: bundle exec thin start -p $PORT
faye: rackup faye.ru -s thin

if i do it without vendor/faye it's work.

So the Js say:

'use strict';var Faye={VERSION:'0.8.9',BAYEUX_VERSION:'1.0',ID_LENGTH:160,JSONP_CALLBACK:'jsonpcallb............


James Coglan

unread,
May 17, 2013, 2:46:14 PM5/17/13
to faye-...@googlegroups.com
I running it with foreman:

web: bundle exec thin start -p $PORT
faye: rackup faye.ru -s thin

What does faye.ru look like? Have you tried running it with `thin start` or by passing `-E production` to rackup? 
Reply all
Reply to author
Forward
0 new messages