Skip to content

Commit

Permalink
Add Mezzano support
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrasca authored and stassats committed Feb 4, 2020
1 parent 585b45b commit bcadbd8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions set-timeouts.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))

0 comments on commit bcadbd8

Please sign in to comment.