equal
deleted
inserted
replaced
134 'never told about this request: %r' % frame) |
134 'never told about this request: %r' % frame) |
135 |
135 |
136 response = self._responses[frame.requestid] |
136 response = self._responses[frame.requestid] |
137 |
137 |
138 if action == 'responsedata': |
138 if action == 'responsedata': |
|
139 # This buffers all data until end of stream is received. This |
|
140 # is bad for performance. |
|
141 # TODO make response data streamable |
139 response.b.write(meta['data']) |
142 response.b.write(meta['data']) |
140 |
143 |
141 if meta['eos']: |
144 if meta['eos']: |
142 # If the command has a decoder, resolve the future to the |
145 # If the command has a decoder, resolve the future to the |
143 # decoded value. Otherwise resolve to the rich response object. |
146 # decoded value. Otherwise resolve to the rich response object. |