Show More
@@ -238,10 +238,10 b' def extsetup(ui):' | |||||
238 | self._ui = ui |
|
238 | self._ui = ui | |
239 | super(badserver, self).__init__(ui, *args, **kwargs) |
|
239 | super(badserver, self).__init__(ui, *args, **kwargs) | |
240 |
|
240 | |||
241 | recvbytes = self._ui.config('badserver', 'closeafterrecvbytes') |
|
241 | recvbytes = self._ui.config(b'badserver', b'closeafterrecvbytes') | |
242 | recvbytes = recvbytes.split(',') |
|
242 | recvbytes = recvbytes.split(',') | |
243 | self.closeafterrecvbytes = [int(v) for v in recvbytes if v] |
|
243 | self.closeafterrecvbytes = [int(v) for v in recvbytes if v] | |
244 | sendbytes = self._ui.config('badserver', 'closeaftersendbytes') |
|
244 | sendbytes = self._ui.config(b'badserver', b'closeaftersendbytes') | |
245 | sendbytes = sendbytes.split(',') |
|
245 | sendbytes = sendbytes.split(',') | |
246 | self.closeaftersendbytes = [int(v) for v in sendbytes if v] |
|
246 | self.closeaftersendbytes = [int(v) for v in sendbytes if v] | |
247 |
|
247 | |||
@@ -261,7 +261,7 b' def extsetup(ui):' | |||||
261 |
|
261 | |||
262 | # Called to accept() a pending socket. |
|
262 | # Called to accept() a pending socket. | |
263 | def get_request(self): |
|
263 | def get_request(self): | |
264 | if self._ui.configbool('badserver', 'closebeforeaccept'): |
|
264 | if self._ui.configbool(b'badserver', b'closebeforeaccept'): | |
265 | self.socket.close() |
|
265 | self.socket.close() | |
266 |
|
266 | |||
267 | # Tells the server to stop processing more requests. |
|
267 | # Tells the server to stop processing more requests. |
General Comments 0
You need to be logged in to leave comments.
Login now