Skip to content

crypto/tls: (*tls.Conn).Read() can return (0, nil) #5309

Description

@gopherbot

by kballard:

What steps will reproduce the problem?
A program I have that uses crypto/tls receives an unexpected (0, nil) response from
(*tls.Conn).Read().

The program is available at https://github.com/kballard/goirc/tree/tls_bug. It's a
sample program for an IRC library. It connects to Freenode and attempts to log in, but
receives the (0, nil) before the first line of output from the server.

Which operating system are you using?
Occurs on both OS X and Ubuntu 12.04.

Which version are you using?  (run 'go version')
go version devel +d58997478ec6 Mon Apr 08 00:09:35 2013 -0700 darwin/amd64

Please provide any additional information below.
If you uncomment the SSLConfig setting in example.go, which forces it to use RC4, the
problem disappears.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions