Commit 840d99d15bbbe8e34683e1f0f2aaaf0bf703d326

Thomas de Grivel 2019-01-16T17:29:23

fix epoll

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/thot-epoll.lisp b/thot-epoll.lisp
index 15e4a5e..2d5dea1 100644
--- a/thot-epoll.lisp
+++ b/thot-epoll.lisp
@@ -143,7 +143,9 @@
          (reply-stream (babel-output-stream
                         (multi-buffered-output-stream
                          (unistd-output-stream fd))))
-         (request (make-instance 'request :stream request-stream))
+         (request (make-instance 'request :stream request-stream
+                                 :remote-addr (socket:sockaddr-to-string
+                                               addr)))
          (reply (make-instance 'reply :stream reply-stream))
          (reader-cont (request-reader request reply)))
     (make-instance 'worker