[racket] Using get-pure-port

From: Danny Yoo (dyoo at cs.wpi.edu)
Date: Thu Aug 18 16:58:38 EDT 2011

> By the way, I found that adding a line to the definition of
> http-pipe-data in url-unit.rkt might resolve my problem either.
> But I hardly understand what I'm doing.
>
> (define (http-pipe-data chunked? ip op)
>  (if chunked?
>      (http-pipe-chunk ip op)
>      (begin
>        (copy-port ip op)
>        (close-input-port ip) ;### I added this line ###
>        (flush-output op)
>        (close-output-port op))))


That looks right to me.  Nice catch.

Send it as a patch to the Racket developers!  https://github.com/plt/racket



Posted on the users mailing list.