Skip to content
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

Implement set-timeouts for clasp #230

Open
rabbibotton opened this issue May 2, 2024 · 5 comments
Open

Implement set-timeouts for clasp #230

rabbibotton opened this issue May 2, 2024 · 5 comments

Comments

@rabbibotton
Copy link

https://github.com/edicl/hunchentoot/blob/master/set-timeouts.lisp

@hanshuebner
Copy link
Member

Are you planning to come up with a PR?

@rabbibotton
Copy link
Author

rabbibotton commented May 2, 2024

I am the wrong person to do it, but if no one, eventually I will try. clasp only compiled with my software the first time this last version so I know little about it.

@hanshuebner
Copy link
Member

Let's see if someone speaks up.

@rabbibotton
Copy link
Author

For myself or another:

The C code for the sockets is here https://github.com/clasp-developers/clasp/tree/main/src/sockets
The Lisp side is here https://github.com/clasp-developers/clasp/tree/main/src/lisp/modules/sockets

@rabbibotton
Copy link
Author

in theory these are the changes, but needs someone to test (my project not working even with this, no data sent to browser, and no time to debug at moment)

-  #+:ecl
+  #+(or :ecl :clasp)
   (when read-timeout
     (setf (sb-bsd-sockets:sockopt-receive-timeout (usocket:socket usocket))
          read-timeout))
-  #+:ecl
+  #+(or :ecl :clasp)
   (when write-timeout
     (setf (sb-bsd-sockets:sockopt-send-timeout (usocket:socket usocket))
          write-timeout))
@@ -80,8 +80,6 @@ set."
   #+:abcl
   (when write-timeout
     (warn "Unimplemented."))
-  #+:clasp
-  (warn "set-timeouts unimplemented.")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants