Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardcoded values #1

Closed
isati opened this issue Jun 29, 2010 · 2 comments
Closed

Hardcoded values #1

isati opened this issue Jun 29, 2010 · 2 comments

Comments

@isati
Copy link

isati commented Jun 29, 2010

Not sure if this is a known issue or not:

I have recently been pulling my hair out trying to get echowaves (http://echowaves.com) [which utilises ruby-stomp] to run on webfaction. As webfaction is shared hosting, ports tend to be somewhat random..usually requiring manual configuration to get things to work.

It came to my attention that upon changing the configured stomp port (default: 61613), within the rails/echowaves environment (and also orbited itself) led to connection refused errors. This appears to be a result of some hardcoded(?) values with the ruby stomp gem which I rather dirtily hacked around by running 'perl -pi -e 's/61613/$NEWPORT/g' on all of the files within the stomp gem directory..which has fixed the issue.

So perhaps there are hardcoded values within the stomp rubygem or environmental values aren't being read correctly?

@gmallard
Copy link

gmallard commented Jul 6, 2010

It would be interesting to know what you changed.

61613 is indeed hard coded a few places: because it is the default if no port is specified when creating a new connection or client.

It is also hard coded in example code .... but that should not affect you.

It is also hard coded for tests unless there is an environment variable override. Were you running actual gem tests?

@morellon
Copy link

Thanks for the help gmallard. Isati, i will close this issue. If you have this problem again, please contact me or gmallard.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants