Changeset 13393 in project


Ignore:
Timestamp:
02/23/09 21:09:32 (11 years ago)
Author:
sjamaan
Message:

Update signal handling for when remote closes the connection unexpectedly. Bug reported by Drew Hess

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/3/http/trunk/http-client.scm

    r13391 r13393  
    250250             (let* ([header (read-line i (http:read-line-limit))]
    251251                    [a (http:read-request-attributes i)])
    252                (cond ((and in out))
     252               (cond ((eof-object? header)
     253                      (signal (make-composite-condition
     254                               (make-property-condition
     255                                'exn
     256                                'location 'http:send-request
     257                                'message "Server closed connection unexpectedly"
     258                                (make-property-condition 'i/o)
     259                                (make-property-condition 'net)))))
     260                     ((and in out))
    253261                     ((and (string? header)
    254262                           (is-keep-alive? header a))
Note: See TracChangeset for help on using the changeset viewer.