[racket-dev] possible bug in openssl/mzssl
This repair seems to have broken uses of `net/url' over SSL.
For example, this:
(get-pure-port (string->url "https://api.github.com/"))
produces:
#<input-port:pipe>
; read-bytes: SSL read failed #f
; === context ===
; /home/samth/sw/plt/collects/openssl/mzssl.rkt:235:2: error/network
; /home/samth/sw/plt/collects/mzlib/port.rkt:133:4: do-read-it
; /home/samth/sw/plt/collects/mzlib/private/port.rkt:102:4: loop
; /home/samth/sw/plt/collects/net/url.rkt:367:3
On Thu, Mar 1, 2012 at 1:05 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
>
> I've pushed a repair. The problem was that the `pump-output' call was
> too early; it needs to happen after SSL_read(), in case the SSL_read()
> triggers new output for the socket level.
--
sam th
samth at ccs.neu.edu