Lines Matching refs:sp
118 sp = self._diff_image_request(expected_contents, actual_contents)
119 return self._diff_image_reply(sp, diff_filename)
130 sp = server_process.ServerProcess(self, 'ImageDiff', command)
132 sp.write('Content-Length: %d\n%sContent-Length: %d\n%s' %
136 return sp
138 def _diff_image_reply(self, sp, diff_filename):
141 output = sp.read_line(timeout)
142 while not sp.timed_out and not sp.crashed and output:
147 output = sp.read(timeout, content_length)
153 output = sp.read_line(deadline)
162 elif sp.timed_out:
164 elif sp.crashed:
166 sp.stop()