{"action":"opened","issue":{"url":"https://api.github.com/repos/faye/faye/issues/454","repository_url":"https://api.github.com/repos/faye/faye","labels_url":"https://api.github.com/repos/faye/faye/issues/454/labels{/name}","comments_url":"https://api.github.com/repos/faye/faye/issues/454/comments","events_url":"https://api.github.com/repos/faye/faye/issues/454/events","html_url":"https://github.com/faye/faye/issues/454","id":189794835,"number":454,"title":"Frequent transport:down","user":{"login":"ackr1201","id":15123502,"avatar_url":"https://avatars.githubusercontent.com/u/15123502?v=3","gravatar_id":"","url":"https://api.github.com/users/ackr1201","html_url":"https://github.com/ackr1201","followers_url":"https://api.github.com/users/ackr1201/followers","following_url":"https://api.github.com/users/ackr1201/following{/other_user}","gists_url":"https://api.github.com/users/ackr1201/gists{/gist_id}","starred_url":"https://api.github.com/users/ackr1201/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ackr1201/subscriptions","organizations_url":"https://api.github.com/users/ackr1201/orgs","repos_url":"https://api.github.com/users/ackr1201/repos","events_url":"https://api.github.com/users/ackr1201/events{/privacy}","received_events_url":"https://api.github.com/users/ackr1201/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-16T18:12:06Z","updated_at":"2016-11-16T18:12:06Z","closed_at":null,"body":"Hi ,\r\n\r\nAm facing a frequent \"transport:down\" issue at my faye client. Please find my client as\r\n\r\nClient is on ruby(sinatra) & faye (1.1.1)\r\n\r\n```\r\nclient = Faye::Client.new <faye-server-endpoint>\r\n\r\nEM.run {\r\n  client.bind 'transport:down' do\r\n    puts \"Transport is DOWN!!\"\r\n    exit\r\n  end\r\n  client.bind 'transport:up' do\r\n    puts \"Transport is UP!!\"\r\n  end\r\n\r\n  subscription = client.subscribe(\"/<channel>/*\") do |message|\r\n    puts \"Received message from upstream: \" + message.inspect\r\n    # <perform some operation>\r\n  end\r\n\r\n  subscription.callback do\r\n    puts \"Subscription is successful\"\r\n  end\r\n\r\n  subscription.errback do |error|\r\n    puts \"Subscription is unsuccessful.\"\r\n    exit\r\n  end\r\n}\r\n\r\n```\r\n\r\n\r\nMy server looks like\r\n\r\nserver is on node => \"0.10.x\", faye => \"1.1.0\", faye-redis => \"0.2.0\"\r\n\r\n```\r\n\r\nvar server = http.createServer(function (request, response) {\r\nvar path = url.parse(request.url).path;\r\n    switch(path){\r\n      case '/':\r\n        response.writeHead(200, {\r\n          'Content-Type': 'text/plain'\r\n        });\r\n        response.end('Server running');\r\n        break;\r\n    }\r\n    \r\n  });\r\n\r\n  var bayeux = new faye.NodeAdapter({\r\n    mount: \"/faye\",\r\n    timeout: 45,\r\n    engine: {\r\n      type: fayeRedis,\r\n      host: \"localhost\",\r\n      port: 3306\r\n    },\r\n    ping: 10\r\n  });\r\n\r\n  bayeux.attach(server);\r\n\r\n  server.listen(config.faye.port);\r\n```\r\n\r\nMy server is behind ELB & haproxy.\r\n\r\nCan you please suggest. what might be the problem in my client/server ?"}}
{"actor":{"display_login":"ackr1201"}}