From bcadbd8640a356f66a0024fbc20d0945a9bc03d6 Mon Sep 17 00:00:00 2001 From: Bruno Cichon Date: Tue, 4 Feb 2020 19:48:26 +0100 Subject: [PATCH] Add Mezzano support --- set-timeouts.lisp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/set-timeouts.lisp b/set-timeouts.lisp index 68cb014..a8b0650 100644 --- a/set-timeouts.lisp +++ b/set-timeouts.lisp @@ -40,7 +40,7 @@ which means that the corresponding socket timeout value will not be set." (declare (ignorable usocket read-timeout write-timeout)) ;; add other Lisps here if necessary - #+(or :sbcl :cmu :abcl) + #+(or :sbcl :cmu :abcl :mezzano) (unless (eql read-timeout write-timeout) (parameter-error "Read and write timeouts for socket must be equal.")) #+:clisp @@ -82,6 +82,8 @@ set." (warn "Unimplemented.")) #+:clasp (warn "set-timeouts unimplemented.") - #-(or :clisp :allegro :openmcl :sbcl :lispworks :cmu :ecl :abcl :clasp) + #+:mezzano + (let ((connection (mezzano.network.tcp:tcp-stream-connection (usocket:socket usocket)))) + (setf (mezzano.network.tcp:tcp-connection-timeout connection) read-timeout)) + #-(or :clisp :allegro :openmcl :sbcl :lispworks :cmu :ecl :abcl :clasp :mezzano) (not-implemented 'set-timeouts)) -