Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #728 (assigned defect)

Opened 10 months ago

Last modified 1 month ago

Buffer.drain throws exception on Eof

Reported by: rrichardson Assigned to: kris (accepted)
Priority: major Milestone: 1.0
Component: Core Functionality Version: 0.99.2 Don
Keywords: triage Cc: rrichardson

Description

It's also final. This makes me sad.

For the case of non-blocking sockets, the eof case is common. I could see it throwing an error if the connection goes bad (currently the only cause for Eof in blocking sockets) If my proposal in http://www.dsource.org/projects/tango/ticket/279 gets accepted, buffer.drain could check both return values, throw an error only on the case of a bad connection, and return 0 in the case of Eof.

Change History

11/08/07 19:04:11 changed by sean

  • owner changed from sean to kris.

11/21/07 15:19:27 changed by kris

  • status changed from new to assigned.
  • milestone set to 1.0.

05/24/08 13:21:43 changed by larsivi

  • keywords set to triage.

08/03/08 18:18:29 changed by kris

  • cc set to rrichardson.

is this still relevant?