socket/socket-stream confusion in tests
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- networking
Research direction
Start by reproducing USOCKET-TEST::SOCKET-LISTEN.1 and USOCKET-TEST::SOCKET-LISTEN.2 on SBCL 2.5.0 and compare the uses of usocket:socket with usocket:socket-stream. Read the documentation for both accessors to determine the intended return type. Done means resolving whether the tests or the socket function is incorrect and updating the relevant behavior or documentation.
Written by the indexing model from the issue text.
Description
Hi,
The tests USOCKET-TEST::SOCKET-LISTEN.1 and USOCKET-TEST::SOCKET-LISTEN.2 fail on sbcl 2.5.0 with errors like:
#<TYPE-ERROR expected-type: STREAM..
[condition]
Slots with :INSTANCE allocation:
DATUM = #<SB-BSD-SOCKETS:INET-SOCKET fd: 7 {10014C5923}>
EXPECTED-TYPE = STREAM
CONTEXT = NIL
Test USOCKET-TEST::SOCKET-LISTEN.2 failed
This code has (read-byte (usocket:socket server)) while I expected (read-byte (usocket:socket-stream server)). In fact with this the tests works.
Is this a fault in the test or in the usocket:socket function? From the documentation it is not clear to me.
- Dominant language
- Common Lisp
- Stars
- 244
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from usocket/usocket
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
TheManticoreProject/Manticore#1380 ·
-
P3 sonic-vpp
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sonic-net/sonic-buildimage#29662 ·
-
support
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100