Steel Bank Common Lisp

MAKE-SOCKET-STREAM and :AUTO-CLOSE

Reported by Nikodemus Siivola on 2010-03-17
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Medium
Unassigned

Bug Description

Reported by Stig Hemmer to sbcl-bugs:

At some point SB-BSD-SOCKETS:SOCKET-MAKE-STREAM stopped accepting the
:AUTO-CLOSE keyword.

This causes problems for ACL-COMPAT and possibly other packages.

According to Google, changing ACL-COMPAT to just drop this argument
will cause memory and file descriptor leaks as sockets aren't closed.

The suggested fix is to replace SB-BSD-SOCKETS:SOCKET-MAKE-STREAM with
a version that accepts :AUTO-CLOSE (and passes it on to
SB-SYS:MAKE-FD-STREAM)

This is workable but unsatisfactory since I would then stop receiving
updates in the official version of that function.

Since this is functionality that once existed but has been removed, I
assume that there are reasons for its removal. Could somebody In The
Know please share those reasons?

Nikodemus Siivola (nikodemus) wrote :

In SBCL 1.0.37.21.

Changed in sbcl:
status: Confirmed → Fix Committed
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers