comparison mercurial/httprepo.py @ 6291:c92cf92c55a6

Backed out changeset 91ac1726730a
author Bryan O'Sullivan <bos@serpentine.com>
date Mon, 17 Mar 2008 07:59:23 -0700
parents 91ac1726730a
children 9cd6292abfdf
comparison
equal deleted inserted replaced
6289:91ac1726730a 6291:c92cf92c55a6
92 # send a file 92 # send a file
93 if isinstance(data, httpsendfile): 93 if isinstance(data, httpsendfile):
94 # if auth required, some data sent twice, so rewind here 94 # if auth required, some data sent twice, so rewind here
95 data.seek(0) 95 data.seek(0)
96 for chunk in util.filechunkiter(data): 96 for chunk in util.filechunkiter(data):
97 connection.sendall(self, chunk) 97 connection.send(self, chunk)
98 else: 98 else:
99 connection.sendall(self, data) 99 connection.send(self, data)
100 return _sendfile 100 return _sendfile
101 101
102 class httpconnection(keepalive.HTTPConnection): 102 class httpconnection(keepalive.HTTPConnection):
103 # must be able to send big bundle as stream. 103 # must be able to send big bundle as stream.
104 send = _gen_sendfile(keepalive.HTTPConnection) 104 send = _gen_sendfile(keepalive.HTTPConnection)