60
63
# the HTTP chunking as this will allow HTTP persistence safely, even if
61
64
# we have to stop early due to error, but we would also have to use the
62
65
# HTTP trailer facility which may not be widely available.
69
71
# Perhaps there should be a SmartServerHTTPMedium that takes care of
70
72
# feeding the bytes in the http request to the smart_protocol_request,
71
73
# but for now it's simpler to just feed the bytes directly.
73
75
if not (smart_protocol_request.next_read_size() == 0):
74
76
raise errors.SmartProtocolError(
75
77
"not finished reading, but all data sent to protocol.")