[racket] cp-write: error writing (Socket is not connected; errno=57)

From: Niitsuma Hirotaka (hirotaka.niitsuma at gmail.com)
Date: Thu Mar 10 03:12:14 EST 2011

I confirm This problem was fixed in racket 5.1.

2011/1/21 Niitsuma Hirotaka <hirotaka.niitsuma at gmail.com>

> >Try adding a delay to the loop.
>
> I added (sleep 5) after http-get
> But same err was caused
>
> ---------
>  #lang racket
> (require net/url)
>
>  (define (http-get url-as-string)
>  (let* ([out (open-output-string)]
>         [in (get-pure-port (string->url url-as-string))])
>    (copy-port in out)
>    (close-input-port in)
>    (get-output-string out)))
>
>  (do  ((n 1 (+ 1 n))) ( (= n  1000) n) (http-get "http://localhost/")
> (sleep 5))
>  _________________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110310/284251ba/attachment.html>

Posted on the users mailing list.