Project

General

Profile

Actions

Bug #798

closed

select() crashes on Linux when handling more than 1024 parallel network connections

Added by Marco Eichelberg almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
High
Category:
Library
Target version:
Start date:
2017-11-01
Due date:
% Done:

100%

Estimated time:
Module:
dcmnet
Operating System:
Linux
Compiler:

Description

DCMTK on Linux crashes in select() when handling more than 1024 parallel network connections.
This is a well-known limitation of access(), and documented here: https://access.redhat.com/solutions/488623
The solution is to use poll() instead of select().

Attached a patch and a test program that demonstrates the crash.

Report and patch submitted by Michael Craggs <>.


Files

dcmtk-Poll.tar.gz (30 KB) dcmtk-Poll.tar.gz Patch and test program Marco Eichelberg, 2017-11-01 10:59
Actions

Also available in: Atom PDF