net/http-client: fix http-conn-live? result

Merge to v6.0

original commit: 1f6453de89
This commit is contained in:
Matthew Flatt 2013-12-06 17:19:07 -07:00
parent 784ab3a94d
commit f9487b6168

View File

@ -88,6 +88,22 @@
#:headers empty
#:data #f)
raw ereq estatus eheaders econtent))
#,(syntax/loc stx
(test-e the-port
(let ([c (hc:http-conn-open "localhost"
#:port the-port
#:ssl? #f)])
(check-equal? #t (hc:http-conn-live? c))
(hc:http-conn-send! c
"/"
#:method "GET"
#:headers empty
#:data #f)
(begin0
(hc:http-conn-recv! c
#:close? #t)
(check-equal? #f (hc:http-conn-live? c))))
raw ereq estatus eheaders econtent))
#,(syntax/loc stx
(test-e the-port
(u:http-sendrecv/url