send problem

34 views
Skip to first unread message

Cinar Eren

unread,
Sep 12, 2016, 3:05:15 AM9/12/16
to fix8 developer
Hello,

Although it happens rarely, i face the following situation:

_session.send(nos);

The above method call returns true but no message is sent by the framework. (i confirm this through protocol log)

What could be the cause of this? What should i check?
Could it be caused by a concurrency issue? (two different threads might be calling send methods of the same session concurrently, but doesnt the spin_lock in the write method allow these calls?)

thanks in advance.
best regards.

Ian McKane

unread,
Sep 12, 2016, 9:54:31 PM9/12/16
to fix8 developer
Doubtful it is concurrency - the send queue has a spinlock on the write. Other threads will block momentarily until that is released so they should only return after they have attempted to send.
Ian

Cinar Eren

unread,
Sep 13, 2016, 10:00:10 AM9/13/16
to fix8 developer
Hello ian,

Do you have any recommendation to find the root cause of this problem?

Best regards

Mazz Barker

unread,
Sep 15, 2016, 8:45:41 PM9/15/16
to fix8 developer
The problem isn't really clear. How have you determined the message isn't sent? Let's see the logs. Try printing the message before you send it. Has the message you are trying to send encoded successfully?
Mazz

Cinar Eren

unread,
Sep 16, 2016, 9:32:42 AM9/16/16
to fix8 developer
Hello Mazz,

I understood the problem when i did not receive any responses from the exchange for a change-price message i sent. Then i checked the protocol log of the framework and could not see that this change-price message is there. But my application log wrote that i sent that message as send() request returned true.
Also a question; although write() method has a spinlock, send() method which calls write() doesnt have it. Could this cause a synchronization problem?

best regards.
Reply all
Reply to author
Forward
0 new messages