-
Notifications
You must be signed in to change notification settings - Fork 53
odd number of &KEY arguments
when calling (usocket:with-client-socket (socket stream #p"/home/user/mysocket" :element-type '(unsigned-byte 8))
#131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
A possible workaround might be: diff --git a/backend/sbcl.lisp b/backend/sbcl.lisp
index 4330153..88beb32 100644
--- a/backend/sbcl.lisp
+++ b/backend/sbcl.lisp
@@ -482,7 +482,7 @@ happen. Use with care."
(setf usocket (make-stream-socket :socket socket :stream *dummy-stream*))
;; binghe: use SOCKOPT-TCP-NODELAY as internal symbol
;; to pass compilation on ECL without it.
- (when (and nodelay sockopt-tcp-nodelay-p)
+ (when (and nodelay sockopt-tcp-nodelay-p (not (pathnamep host)))
(setf (sb-bsd-sockets::sockopt-tcp-nodelay socket) nodelay))
(when (or local-host local-port)
(sb-bsd-sockets:socket-bind socket Example:
|
I think a very major issue here is the poor interface of |
Agreed, @binghe how about introducing new interface |
Agreed. You are welcome to submit a PR for the new API (and remove the |
For Unix domain socket connections (on SBCL), the PORT is NIL (previously an optional argument)
On SBCL I get the following stack trace:
It seems the :PORT keyword gets no value. I'm trying to get this to work #110 but without success. Even
(usocket:with-client-socket (socket stream #p"/home/user/mysocket))
fails withPlease advise.
The text was updated successfully, but these errors were encountered: