Closed ppknap closed 7 years ago
when the XHR session is closed, there is no way to drain <-chan doResult created by do() method because Recv() internal loop is already aborted.
<-chan doResult
do()
Recv()
This PR makes returned doResult channel buffered, thus, it will prevent go-routine leaks after session is closed.
doResult
when the XHR session is closed, there is no way to drain
<-chan doResult
created bydo()
method becauseRecv()
internal loop is already aborted.This PR makes returned
doResult
channel buffered, thus, it will prevent go-routine leaks after session is closed.