##// END OF EJS Templates
cmdserver: don't raise EOFError when trying to read 0 bytes from the client
Idan Kamara -
r14706:5fd5dd9a stable
parent child Browse files
Show More
@@ -155,6 +155,9 b' class server(object):'
155 raise util.Abort(_('unknown mode %s') % mode)
155 raise util.Abort(_('unknown mode %s') % mode)
156
156
157 def _read(self, size):
157 def _read(self, size):
158 if not size:
159 return ''
160
158 data = self.client.read(size)
161 data = self.client.read(size)
159
162
160 # is the other end closed?
163 # is the other end closed?
General Comments 0
You need to be logged in to leave comments. Login now