Use write error directly instead of generic buffer error on listener write
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b8610799c8
commit
59b9c25f17
|
@ -505,7 +505,7 @@ func (q *Queue) HandleRadioRequest(writer http.ResponseWriter, request *http.Req
|
||||||
|
|
||||||
for byteSlice := range writeChannel {
|
for byteSlice := range writeChannel {
|
||||||
if _, err := writer.Write(byteSlice); err != nil {
|
if _, err := writer.Write(byteSlice); err != nil {
|
||||||
requestDone.Fail(errors.New("client ran out of writer buffer"))
|
requestDone.Fail(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
//try flush
|
//try flush
|
||||||
|
|
Loading…
Reference in a new issue