Hi Nilesh,
Concerning the number of simultaneously open files, the limitation is not in
Windows, but in the stdio level, this number can be increased to a maximum
of 2.048 files per program.
Calling _setmaxstdio(2048); in the main() function before initializing
quickfix, will make it possible to create about 340 sessions using
FileLogFactory and FileStoreFactory together, if the application needs to
open other files, this number of sessions will certainly have to decrease.
This is not so bad, but I am really thinking about a genuine Win32
implementation for these factories, calling the API functions directly and
not using stdio will definitively eliminate this kind of limitation and the
performance will become better too.
If you plan to have multiple sessions, prefer the threaded-socket classes.
Djalma
On Fri, Feb 29, 2008 at 10:32 AM, <Nil...@co...> wrote:
> QuickFIX Documentation:
> http://www.quickfixengine.org/quickfix/doc/html/index.html
> QuickFIX Support: http://www.quickfixengine.org/services.html
>
>
> Hi All
>
> How is threading is done in QF to handle the multiple session. Is it one
> thread one session or there is a thread pool to handle all sessions.
>
> If we use FileLogFactory, QF creates 'event' and 'message' file for each
> client session. Is there a way to force QF create only one file for all
> client session. I am asking this as otherwise the no of sessions handled
> by QF would be limited to no of opened file handles. I guess windows
> allow you to open only 512 files.
>
>
>
> Thanks & Regards
> -Nilesh
>
> This e-mail and any files transmitted with it are for the sole use of the
> intended recipient(s) and may contain confidential and privileged
> information.
> If you are not the intended recipient, please contact the sender by reply
> e-mail and destroy all copies of the original message.
> Any unauthorised review, use, disclosure, dissemination, forwarding,
> printing or copying of this email or any action taken in reliance on this
> e-mail is strictly
> prohibited and may be unlawful.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Quickfix-developers mailing list
> Qui...@li...
> https://lists.sourceforge.net/lists/listinfo/quickfix-developers
>
|