Removed closed-for-read/write status codes

This commit is contained in:
Nigel Tao committed 2018-08-04 09:34:39 +10:00
1 parent 98b2aa9837
commit eca5565821
9 files changed
+39 -115

No files matched your search

+1 -4
View File
@@ -51,11 +51,8 @@ var StatusList = [...]Status{
{t.IDError, -0x20, "cannot return a suspension"},
{t.IDError, -0x30, "unexpected EOF"}, // Used if reading when closed == true.
{t.IDError, -0x31, "closed for writes"}, // TODO: is this unused? Should callee or caller check closed-ness?
{t.IDSuspension, +0x01, "end of data"},
{t.IDSuspension, +0x02, "short read"}, // Used if reading when closed == false.
{t.IDSuspension, +0x02, "short read"},
{t.IDSuspension, +0x03, "short write"},
}