[Quickfix-users] QuickFIX-Ruby issue
Brought to you by:
orenmnero
From: Phil <ph...@me...> - 2011-05-10 17:14:35
|
I've been trying for the past week to make an application using QuickFIX Ruby and I'm having a weird problem. I posted a message earlier this week to try to figure out if I was coding my application the wrong way but now I know I'm not. Here is a snippet of my code: ---- settings = Quickfix::SessionSettings.new("quickfix.conf") # HeartBeat is set to 30 seconds application = Quickfix_Application.new storeFactory = Quickfix::FileStoreFactory.new(settings) logFactory = Quickfix::ScreenLogFactory.new(settings) initiator = Quickfix::SocketInitiator.new(application, storeFactory, settings, logFactory) initiator.start while true puts "Hello!" sleep(1) end initiator.stop ---- The I have is the command "puts Hello" gets executed once every 30 seconds, which is the HeartBeat timeout, instead of every second. I coded the same exact thing in Python and it works as expected (outputs Hello every second). Does anybody encountered this problem with Quickfix-Ruby? - Phil |