Ticket #279: SocketConduit.diff
| File SocketConduit.diff, 0.9 kB (added by rrichardson, 1 year ago) |
|---|
-
SocketConduit.d
old new 270 270 271 271 // invoke the actual read op 272 272 int count = socketReader (dst); 273 if (count <= 0) 273 if (count == 0) 274 count = BadFd; 275 else if (count == -1) 274 276 count = Eof; 277 275 278 return count; 276 279 } 277 280 } … … 288 291 override uint write (void[] src) 289 292 { 290 293 int count = socket_.send (src); 291 if (count <= 0) 292 count = Eof; 294 if (count == 0) 295 count = BadFd; 296 else if (count == -1) 297 count = Eof; 293 298 return count; 294 299 } 295 300










