X-Git-Url: http://www.git.cypherpunks.ru/?p=gocheese.git;a=blobdiff_plain;f=ucspi.go;h=ff15dbd526d77b7c3d0c3fc0ebd756d9b0a0f318;hp=8fce33db8e726227babf533a3b0d6a08473434ab;hb=60834a0713d5dcc6a9911511cb8618ce7358c824;hpb=948543909470b983c001f13fb267a64070dd20ae diff --git a/ucspi.go b/ucspi.go index 8fce33d..ff15dbd 100644 --- a/ucspi.go +++ b/ucspi.go @@ -27,7 +27,7 @@ import ( ) var ( - aLongTimeAgo = time.Unix(1, 0) + ALongTimeAgo = time.Unix(1, 0) UCSPIJob sync.WaitGroup ) @@ -91,7 +91,7 @@ func (conn *UCSPIConn) SetReadDeadline(t time.Time) error { // An ugly hack to forcefully terminate pending read. // net/http calls SetReadDeadline(aLongTimeAgo), but file // descriptors are not capable to exit immediately that way. - if t.Equal(aLongTimeAgo) { + if t.Equal(ALongTimeAgo) { conn.eof <- struct{}{} } return os.Stdin.SetReadDeadline(t)