Describe the bug
Hunchentoot fails to process connections on Clasp 2.7.0 with the error "Not a binary stream". Clasp's socket stream implementation does not return a binary stream as required by hunchentoot.
Expected behavior
Starting a Hunchentoot acceptor and connecting via browser should serve HTTP responses normally, as it does on SBCL.
Actual behavior
Every incoming connection produces the following error:
[ERROR] Error while processing connection: Not a binary stream
;;; Warning: set-timeouts unimplemented.
The connection is reset and no HTTP response is served.
Code at issue
(asdf:load-system :hunchentoot)
(hunchentoot:start (make-instance 'hunchentoot:easy-acceptor :port 8081))
;; Then navigate to http://localhost:8081 in a browser
Other steps to reproduce
- Install Clasp 2.7.0
- Ensure usocket 0.8.8 is available via ocicl or quicklisp
- Load and start Hunchentoot as above
- Navigate to http://localhost:8081 in any browser
- Observe "Not a binary stream" error repeated for every connection attempt
Context
Clasp version: 2.7.0
usocket version: 0.8.8
Operating system: NixOS Linux x86-64
The socket stream returned by Clasp's usocket backend is not a binary stream, causing Hunchentoot's call to flexi-streams:make-flexi-stream to fail. This also prevents CLOG-based applications from running on Clasp.
Describe the bug
Hunchentoot fails to process connections on Clasp 2.7.0 with the error "Not a binary stream". Clasp's socket stream implementation does not return a binary stream as required by hunchentoot.
Expected behavior
Starting a Hunchentoot acceptor and connecting via browser should serve HTTP responses normally, as it does on SBCL.
Actual behavior
Every incoming connection produces the following error:
The connection is reset and no HTTP response is served.
Code at issue
Other steps to reproduce
Context
Clasp version: 2.7.0
usocket version: 0.8.8
Operating system: NixOS Linux x86-64
The socket stream returned by Clasp's usocket backend is not a binary stream, causing Hunchentoot's call to
flexi-streams:make-flexi-streamto fail. This also prevents CLOG-based applications from running on Clasp.