Skip to content

When and How are sessions closed? #238

@loveabc

Description

@loveabc

Hi chrjohn,

I'm a new person using quick fix from China, and I have a question about create and close session.
In createSessions method of AbstractSocketAcceptor.java, you create a session using Session Factory, I think it's good, the Session implements Closeable interface, however, you don't put 'sessionFactory.create(sessionID, settings)' into try source, so I want to know When and how are sessions closed.
My app prints 'Too many open files' exception every second in QFJ Timer thread, so I wonder if it's because session isn't closed correctly.

Or where is there opening file operation in 'QFJ Timer' thead? sorry, I search but no result.

Looking forward to your reply & thanks
Tim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions