mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 15:46:51 +08:00
make WritePacket*() return errors when write queue is full (#388)
This commit is contained in:
@@ -252,10 +252,18 @@ func (e ErrServerUnexpectedFrame) Error() string {
|
||||
return "received unexpected interleaved frame"
|
||||
}
|
||||
|
||||
// ErrServerUnexpectedResponse is an error that can be returned by a client.
|
||||
// ErrServerUnexpectedResponse is an error that can be returned by a server.
|
||||
type ErrServerUnexpectedResponse struct{}
|
||||
|
||||
// Error implements the error interface.
|
||||
func (e ErrServerUnexpectedResponse) Error() string {
|
||||
return "received unexpected response"
|
||||
}
|
||||
|
||||
// ErrServerWriteQueueFull is an error that can be returned by a server.
|
||||
type ErrServerWriteQueueFull struct{}
|
||||
|
||||
// Error implements the error interface.
|
||||
func (e ErrServerWriteQueueFull) Error() string {
|
||||
return "write queue is full"
|
||||
}
|
||||
|
Reference in New Issue
Block a user