mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-02 20:02:25 -06:00 
			
		
		
		
	[chore]: Bump golang.org/x/net from 0.15.0 to 0.16.0 (#2260)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.16.0. - [Commits](https://github.com/golang/net/compare/v0.15.0...v0.16.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								d173fcdfa3
							
						
					
				
			
			
				commit
				
					
						5aeceb5ff7
					
				
			
		
					 99 changed files with 926 additions and 2273 deletions
				
			
		
							
								
								
									
										12
									
								
								vendor/golang.org/x/net/http2/server.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								vendor/golang.org/x/net/http2/server.go
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1892,9 +1892,11 @@ func (st *stream) copyTrailersToHandlerRequest() {
 | 
			
		|||
// onReadTimeout is run on its own goroutine (from time.AfterFunc)
 | 
			
		||||
// when the stream's ReadTimeout has fired.
 | 
			
		||||
func (st *stream) onReadTimeout() {
 | 
			
		||||
	// Wrap the ErrDeadlineExceeded to avoid callers depending on us
 | 
			
		||||
	// returning the bare error.
 | 
			
		||||
	st.body.CloseWithError(fmt.Errorf("%w", os.ErrDeadlineExceeded))
 | 
			
		||||
	if st.body != nil {
 | 
			
		||||
		// Wrap the ErrDeadlineExceeded to avoid callers depending on us
 | 
			
		||||
		// returning the bare error.
 | 
			
		||||
		st.body.CloseWithError(fmt.Errorf("%w", os.ErrDeadlineExceeded))
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// onWriteTimeout is run on its own goroutine (from time.AfterFunc)
 | 
			
		||||
| 
						 | 
				
			
			@ -2012,9 +2014,7 @@ func (sc *serverConn) processHeaders(f *MetaHeadersFrame) error {
 | 
			
		|||
	// (in Go 1.8), though. That's a more sane option anyway.
 | 
			
		||||
	if sc.hs.ReadTimeout != 0 {
 | 
			
		||||
		sc.conn.SetReadDeadline(time.Time{})
 | 
			
		||||
		if st.body != nil {
 | 
			
		||||
			st.readDeadline = time.AfterFunc(sc.hs.ReadTimeout, st.onReadTimeout)
 | 
			
		||||
		}
 | 
			
		||||
		st.readDeadline = time.AfterFunc(sc.hs.ReadTimeout, st.onReadTimeout)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	go sc.runHandler(rw, req, handler)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue