/*
GoCheese -- Python private package repository and caching proxy
-Copyright (C) 2019-2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2019-2022 Sergey Matveev <stargrave@stargrave.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
)
var (
- aLongTimeAgo = time.Unix(1, 0)
+ ALongTimeAgo = time.Unix(1, 0)
UCSPIJob sync.WaitGroup
)
// 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)