Project

General

Profile

Actions

Bug #431

open

bip is leaking file descriptors

Added by Pierre-Louis Bonicoli over 9 years ago. Updated 3 months ago.

Status:
New
Priority:
High
Assignee:
Target version:
Start date:
2015-01-15
Due date:
% Done:

0%

Estimated time:
Patch Available:
Yes
Found in Versions:
Confirmed:
Yes
Branch:
Security:
No
Help Needed:

Description

fran wrote:

bip is leaking file descriptors on my server, and the fix is pretty easy: on connection.c, on read_socket, whenever read returns <1 and errno is different to EAGAIN and EINTR, the socket MUST be closed
because read will not return 0 on the following iterations of select (cause it's not added to the read fd_set after that), plus after read failing with fatal error it keeps returning -1

Actions

Also available in: Atom PDF