server: rewrite timeout system

This commit is contained in:
aler9
2021-05-04 15:38:46 +02:00
committed by Alessandro Ros
parent 5527f4d1f7
commit 6f749e6ba8
7 changed files with 115 additions and 104 deletions

View File

@@ -31,12 +31,12 @@ func (e ErrServerCSeqMissing) Error() string {
return "CSeq is missing"
}
// ErrServerInvalidMethod is an error that can be returned by a server.
type ErrServerInvalidMethod struct{}
// ErrServerUnhandledRequest is an error that can be returned by a server.
type ErrServerUnhandledRequest struct{}
// Error implements the error interface.
func (e ErrServerInvalidMethod) Error() string {
return "invalid method"
func (e ErrServerUnhandledRequest) Error() string {
return "unhandled request"
}
// ErrServerWrongState is an error that can be returned by a server.