[racket] bug?

From: Jordan Schatz (jordan at noionlabs.com)
Date: Sun Jun 26 19:27:04 EDT 2011

#lang racket
(require net/url)

;; Works
(call/input-url
 (string->url "https://encrypted.google.com")
 get-pure-port
 (lambda (ip)
   (copy-port ip (current-output-port))
   (newline)))

;; Doesn't work
(call/input-url
 (string->url "https://mtgox.com/code/data/ticker.php")
 get-pure-port
 (lambda (ip)
   (copy-port ip (current-output-port))
   (newline)))

I'm not sure if this is considered a bug in racket or in the SSL
implementation at mtgox.com. The mtgox url does work fine for me via
curl/wget etc. As far as I can tell when racket tries to retrieve the
mtgox url everything starts off fine: the TLS handshake happens, then the
request is sent and application data retrieved, but after that it just
hangs.

The above requires a nightly build to run (so that get-pure-port supports
https)

Shalom,
Jordan



Posted on the users mailing list.