Re: [Quickfix-users] SessionQualifier and MySQL
Brought to you by:
orenmnero
From: Joerg T. <Joe...@ma...> - 2006-03-22 08:58:13
|
Privet, Nikolay, > We're developing acceptor application, but the specific is that we want= to > provide many clients to initiate sessions simultaneously. We use QuickF= IX > 1.11 with MySQL storing end logging. I tried to use SessionQualifier, b= ut it > doesn't works in way I expected. Two initators with same BeginString, > SenderCompID, TargetCompID and different SessionQualifier can't logon > simultaneously. > On acceptor side there are no record with nonempty SessionQualifier fie= ld in > session table.=20 > One initator logins successfully, but all other initator logs is floode= d > with: > 20060321-16:41:08 : Connecting to localhost on port 5001 > 20060321-16:41:09 : Connection succeeded > 20060321-16:41:09 : Initiated logon request > 20060321-16:41:09 : Socket Error: Connection reset by peer. > 20060321-16:41:09 : Disconnecting > Have you an idea, where is my mistake? The SessionQualifier was introduced -- if I recollect correctly -- to all= ow QF to manage=20 several sessions with same SenderCompID and TargetCompID, _but_ different= accept ports. Before that a QF session was uniquely identified by (BeginString, SenderC= ompID, TargetCompID). The important point in your case is that the SessionQualifier is _not_ tr= ansmitted over=20 the wire, ie if both of your initiator clients has a different SessionQua= lifier=20 configured, but connect to the _same_ port with identical (BeginString, S= enderCompID,=20 TargetCompID), QF will forward these requests to the _same_ session, whic= h results in the=20 disconnects (since the session is already logged on). Please try with different ports for each different qualifier. Cheers, J=F6rg --=20 Joerg Thoennes http://macd.com Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen |