SplitHTTP: Do not produce too large upload (#3691)
This commit is contained in:
1 parent
1562e1ffb9
commit
160316d53c
4 files changed
+108
-6
No files matched your search
@@ -46,6 +46,14 @@ var (
|
||||
errSlowDown = errors.New("slow down")
|
||||
)
|
||||
|
||||
func (p *pipe) Len() int32 {
|
||||
data := p.data
|
||||
if data == nil {
|
||||
return 0
|
||||
}
|
||||
return data.Len()
|
||||
}
|
||||
|
||||
func (p *pipe) getState(forRead bool) error {
|
||||
switch p.state {
|
||||
case open:
|
||||
|
||||
Reference in new issue
Block a user