Patch for concurrent iterator & others (onto v1.11.6) #386
@ -31,8 +31,9 @@ import (
|
|||||||
|
|
||||||
// ipcListen will create a Unix socket on the given endpoint.
|
// ipcListen will create a Unix socket on the given endpoint.
|
||||||
func ipcListen(endpoint string) (net.Listener, error) {
|
func ipcListen(endpoint string) (net.Listener, error) {
|
||||||
if len(endpoint) > int(max_path_size) {
|
// account for null-terminator too
|
||||||
log.Warn(fmt.Sprintf("The ipc endpoint is longer than %d characters. ", max_path_size),
|
if len(endpoint)+1 > int(max_path_size) {
|
||||||
|
log.Warn(fmt.Sprintf("The ipc endpoint is longer than %d characters. ", max_path_size-1),
|
||||||
"endpoint", endpoint)
|
"endpoint", endpoint)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user