<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Event",
  "identifier" : "/documentation/Event/SocketError/readFailed(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Event"
    ],
    "preciseIdentifier" : "s:5Event11SocketErrorO10readFailedyACs5Int32VcACmF"
  },
  "title" : "SocketError.readFailed(_:)"
}
-->

# SocketError.readFailed(_:)

`read(2)` returned a negative value (not EOF).

```
case readFailed(Int32)
```

## Parameters

`errno`

Typical values include `ECONNRESET` and `ETIMEDOUT`. For an
orderly peer-initiated shutdown see [`SocketError.connectionClosed`](/documentation/Event/SocketError/connectionClosed).