Comments (3)
Unlikely that this is a gem bug I think. You are operating in a complex network environment. And as with all networking apps, any thing can go wrong at any time.
Any chance of you showing me your logs ?
Make sure your custom logger emits all the information it possibly can. Including original exception ans stack trace data if possible.
In the logger, try things like:
# Log miscellaneous errors
def on_miscerr(parms, errstr)
begin
@log.debug "Miscellaneous Error #{info(parms)}"
@log.debug "Miscellaneous Error String #{errstr}"
@log.debug "Miscellaneous Error All Parms #{parms.inspect}"
if parms[:ssl_exception]
@log.debug "SSL Miscellaneous Error Parms: #{parms[:ssl_exception]}"
@log.debug "SSL Miscellaneous Error Message: #{parms[:ssl_exception].message}"
btr = parms[:ssl_execption].backtrace.join("\n")
@log.debug "Backtrace SME: #{btr}"
end
rescue
@log.debug "Miscellaneous Error oops"
end
end
Do you have access to AMQ logs ? If so, do they show anything "interesting" ?
Looking at your connect hash: have you tried using well selected values for heartbeats ? That is a shot in the dark, but it might help.
from stomp.
I changed your code above just enough to get it running here. Started it.
Also started two producers. One sends to queue 1 every 30 seconds, the other to queue 2 every 20 seconds.
Connections to AMQ on localhost.
Right now, that has been running for about 20 hours with no failures.
I doubt tat I will be able to recreate this problem.
from stomp.
I cannot recreate the problem you describe.
I have had your code running for as long as 4 days, with no problems.
If you need help from me I am going to need to see all of the detail in logs from the logger.
Incidentally, there is an enhancement to the example logger the gem provides. It is on the DEV branch only at present.
from stomp.
Related Issues (20)
- Unexpected ACK received for message-id HOT 7
- multihost failover not really working HOT 1
- netio.rb:47:in `block (2 levels) in _receive': Connected, header read is nil, is this really a Stomp Server? (Stomp::Error::StompServerError) HOT 4
- Nasty-looking exception under jRuby HOT 3
- 1.4.5 gives me a ServerFrameNameError HOT 6
- OpenSSL Deprecations HOT 2
- New Release request HOT 3
- Code for ENV keys not in release HOT 3
- Support Stomp+SSL Url Strings in non-failover case. HOT 4
- Header decode shortcoming HOT 1
- stdout polluted with stack trace HOT 1
- rspec3 - doubles or partial doubles from rspec-mocks outside .... HOT 6
- Warning: constant ::Fixnum is deprecated HOT 1
- Provide tagged 1.4.9 release HOT 1
- Is there any method to check if subscription is present? HOT 1
- Subscribers are not receiving all messages that we are publishing HOT 9
- Man pages Debian.
- URL options not supported when passing URL to client
- What range of ruby versions are supported?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stomp.