Amp\Artax\BufferWriter::generateWriteFailureMessage PHP Method

generateWriteFailureMessage() private method

    private function generateWriteFailureMessage()
    {
        $sockContext = @stream_context_get_options($this->socket);
        if ($this->bytesWritten === 0 && empty($sockContext['ssl'])) {
            $msg = "Socket connection failed before data could be fully written. This *may* have ";
            $msg .= "occurred because you're attempting to connect via HTTP when the remote server ";
            $msg .= "only supports encrypted HTTPS connections. Try your request using an https:// URI.";
        } else {
            $msg = 'Connection to server severed before the request write could complete.';
        }
        return $msg;
    }