|
|
|
@ -1,8 +1,31 @@
|
|
|
|
|
package core
|
|
|
|
|
|
|
|
|
|
// Error string constants
|
|
|
|
|
const (
|
|
|
|
|
connWriteErrStr = "Conn write error"
|
|
|
|
|
connReadErrStr = "Conn read error"
|
|
|
|
|
connCloseErrStr = "Conn close error"
|
|
|
|
|
listenerBeginErrStr = "Listener begin error"
|
|
|
|
|
listenerAcceptErrStr = "Listener accept error"
|
|
|
|
|
mutexUpgradeErrStr = "Mutex upgrade fail"
|
|
|
|
|
mutexDowngradeErrStr = "Mutex downgrade fail"
|
|
|
|
|
fileOpenErrStr = "File open error"
|
|
|
|
|
fileStatErrStr = "File stat error"
|
|
|
|
|
fileReadErrStr = "File read error"
|
|
|
|
|
fileTypeErrStr = "Unsupported file type"
|
|
|
|
|
directoryReadErrStr = "Directory read error"
|
|
|
|
|
restrictedPathErrStr = "Restricted path"
|
|
|
|
|
invalidHostErrStr = "Invalid host"
|
|
|
|
|
invalidRequestErrStr = "Invalid request"
|
|
|
|
|
cgiStartErrStr = "CGI start error"
|
|
|
|
|
cgiExitCodeErrStr = "CGI non-zero exit code"
|
|
|
|
|
pgidNotFoundErrStr = "Process unfinished, PGID not found!"
|
|
|
|
|
pgidStopErrStr = "Error stopping process group %d: %s"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Log string constants
|
|
|
|
|
const (
|
|
|
|
|
hostnameBindEmptyStr = "At least one of hostname or bind-addr must be non-empty!"
|
|
|
|
|
hostnameBindEmptyStr = "At least one of 'hostname' or 'listen' must be non-empty!"
|
|
|
|
|
|
|
|
|
|
chrootStr = "Chrooting into dir: %s"
|
|
|
|
|
chrootErrStr = "Error chrooting into directory: %s"
|
|
|
|
@ -61,25 +84,4 @@ const (
|
|
|
|
|
signalReceivedStr = "Signal received: %v. Shutting down..."
|
|
|
|
|
|
|
|
|
|
logOutputErrStr = "Error opening log output %s: %s"
|
|
|
|
|
|
|
|
|
|
pgidNotFoundErrStr = "Process unfinished, PGID not found!"
|
|
|
|
|
pgidStopErrStr = "Error stopping process group %d: %s"
|
|
|
|
|
|
|
|
|
|
connWriteErrStr = "Conn write error"
|
|
|
|
|
connReadErrStr = "Conn read error"
|
|
|
|
|
connCloseErrStr = "Conn close error"
|
|
|
|
|
listenerBeginErrStr = "Listener begin error"
|
|
|
|
|
listenerAcceptErrStr = "Listener accept error"
|
|
|
|
|
mutexUpgradeErrStr = "Mutex upgrade fail"
|
|
|
|
|
mutexDowngradeErrStr = "Mutex downgrade fail"
|
|
|
|
|
fileOpenErrStr = "File open error"
|
|
|
|
|
fileStatErrStr = "File stat error"
|
|
|
|
|
fileReadErrStr = "File read error"
|
|
|
|
|
fileTypeErrStr = "Unsupported file type"
|
|
|
|
|
directoryReadErrStr = "Directory read error"
|
|
|
|
|
restrictedPathErrStr = "Restricted path"
|
|
|
|
|
invalidHostErrStr = "Invalid host"
|
|
|
|
|
invalidRequestErrStr = "Invalid request"
|
|
|
|
|
cgiStartErrStr = "CGI start error"
|
|
|
|
|
cgiExitCodeErrStr = "CGI non-zero exit code"
|
|
|
|
|
)
|
|
|
|
|