Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7761749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:13:01+00:00 2026-06-01T14:13:01+00:00

We have problem with our Qt based production server for our business application. When

  • 0

We have problem with our Qt based production server for our business application. When total SSL connections increases with time, some clients does not manage to connect at all.

QSslSocket::waitForEncrypted() starts to fail with no QSslError, regardless of that timeout where set. There are more then ~100 active connections when this problem starts to kick in.

So there are ~170 connections, twice of threads, and “lsof” mentions a little more then 1000 opened files (we had to increase file “ulimit” for that..).

It does not look like it’s clients problem, since IPs that are failing and reconnecting changes with time (some “leaps in” with success, but then other don’t).

As mentioned, this happens in Ubuntu Server (Zentyal 10.04 and “vanilla” 9.10), but does NOT in Ubuntu Desktop 9.10.

Everything runs inside VMWare ESX 4.1, systems there tested with same resources attached. System loads stays below 1.0. Daemon runs with root permissions.

It looks like it’s something with “server”/”desktop” kernel or other configuration differences, but I couldn’t tell what exactly could make SSL connection not to handshake… in “server editions”…

We are using Qt 4.5.3 compiled by ourselves.

EDIT: after all it’s the same on any Linux I tried. It feels like it’s some kind socket limit per process, witch is about 1016 – other_opened_files. I’ll try to create new question about that.

EDIT 2: It’s select and FD_SETSIZE limit problem…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T14:13:03+00:00Added an answer on June 1, 2026 at 2:13 pm

    Problem is with fact that Qt uses select() which is limited with FD_SETSIZE macro for maximum selected sockets/files. I had to change FD_SETSIZE value inside /usr/include/bits/typesizes.h before compiling libQtNetwork and libQtCore.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a problem in our swing based application since we've upgraded our java
We have an x-files problem with our .NET application. Or, rather, hybrid Win32 and
I have a problem executing a process from our testing server. On my localhost
I have a problem. Actually in our application, earlier the customer was allowed to
I have a graph that keeps getting dynamically changing data from our server based
All - I have recently upgraded our production environment from Sql Server Reporting Services
Our current product is based on Eclipse RCP. We are starting to have problems
I'm trying to get a handle on whether we have a problem in our
So here is our problem: We have a small team of developers with their
We have a common problem of moving our development SQL 2005 database onto shared

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.