These are chat archives for fourthbit/spheres

18th
May 2016
Bob Coleman
@skilldown
May 18 2016 19:25
Anybody using the sack-server library from spheres?
I've been toying with it, but can't get a response from the server to any connections. The sockets just hang open with nothing sent to the client. Even the simple example from the source code doesn't work for me.
(sack-start!
 (lambda (env)
   (define (r)
     (with-output-to-u8vector
      '()
      (lambda ()
        (print "Hello world!\n"
               "\n"
               "URI: " (env 'sack:uri)))))
   (values 200
           '()
           (let ((f #t))
             (lambda ()
               (and f
                    (begin
                      (set! f #f)
                      (let ((output (r)))
                        output))))))))
 server-address: #f ;"*"
 port-number: 8000)
I wanted to see if anybody else had this working before I started digging too deep into the module.