MAKE-SOCKET-STREAM and :AUTO-CLOSE

Bug #540413 reported by Nikodemus Siivola
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
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?

Tags: contribs easy
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.