mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 18:13:42 +08:00 
			
		
		
		
	vendor: update buildkit to v0.15.0-rc1
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
		
							
								
								
									
										2
									
								
								vendor/golang.org/x/net/html/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/golang.org/x/net/html/doc.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -104,7 +104,7 @@ tokenization, and tokenization and tree construction stages of the WHATWG HTML
 | 
			
		||||
parsing specification respectively. While the tokenizer parses and normalizes
 | 
			
		||||
individual HTML tokens, only the parser constructs the DOM tree from the
 | 
			
		||||
tokenized HTML, as described in the tree construction stage of the
 | 
			
		||||
specification, dynamically modifying or extending the docuemnt's DOM tree.
 | 
			
		||||
specification, dynamically modifying or extending the document's DOM tree.
 | 
			
		||||
 | 
			
		||||
If your use case requires semantically well-formed HTML documents, as defined by
 | 
			
		||||
the WHATWG specification, the parser should be used rather than the tokenizer.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										13
									
								
								vendor/golang.org/x/net/http/httpguts/httplex.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								vendor/golang.org/x/net/http/httpguts/httplex.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -12,7 +12,7 @@ import (
 | 
			
		||||
	"golang.org/x/net/idna"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
var isTokenTable = [127]bool{
 | 
			
		||||
var isTokenTable = [256]bool{
 | 
			
		||||
	'!':  true,
 | 
			
		||||
	'#':  true,
 | 
			
		||||
	'$':  true,
 | 
			
		||||
@@ -93,12 +93,7 @@ var isTokenTable = [127]bool{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func IsTokenRune(r rune) bool {
 | 
			
		||||
	i := int(r)
 | 
			
		||||
	return i < len(isTokenTable) && isTokenTable[i]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func isNotToken(r rune) bool {
 | 
			
		||||
	return !IsTokenRune(r)
 | 
			
		||||
	return r < utf8.RuneSelf && isTokenTable[byte(r)]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// HeaderValuesContainsToken reports whether any string in values
 | 
			
		||||
@@ -202,8 +197,8 @@ func ValidHeaderFieldName(v string) bool {
 | 
			
		||||
	if len(v) == 0 {
 | 
			
		||||
		return false
 | 
			
		||||
	}
 | 
			
		||||
	for _, r := range v {
 | 
			
		||||
		if !IsTokenRune(r) {
 | 
			
		||||
	for i := 0; i < len(v); i++ {
 | 
			
		||||
		if !isTokenTable[v[i]] {
 | 
			
		||||
			return false
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										13
									
								
								vendor/golang.org/x/net/http2/frame.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								vendor/golang.org/x/net/http2/frame.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -490,6 +490,9 @@ func terminalReadFrameError(err error) bool {
 | 
			
		||||
// returned error is ErrFrameTooLarge. Other errors may be of type
 | 
			
		||||
// ConnectionError, StreamError, or anything else from the underlying
 | 
			
		||||
// reader.
 | 
			
		||||
//
 | 
			
		||||
// If ReadFrame returns an error and a non-nil Frame, the Frame's StreamID
 | 
			
		||||
// indicates the stream responsible for the error.
 | 
			
		||||
func (fr *Framer) ReadFrame() (Frame, error) {
 | 
			
		||||
	fr.errDetail = nil
 | 
			
		||||
	if fr.lastFrame != nil {
 | 
			
		||||
@@ -1521,7 +1524,7 @@ func (fr *Framer) maxHeaderStringLen() int {
 | 
			
		||||
// readMetaFrame returns 0 or more CONTINUATION frames from fr and
 | 
			
		||||
// merge them into the provided hf and returns a MetaHeadersFrame
 | 
			
		||||
// with the decoded hpack values.
 | 
			
		||||
func (fr *Framer) readMetaFrame(hf *HeadersFrame) (*MetaHeadersFrame, error) {
 | 
			
		||||
func (fr *Framer) readMetaFrame(hf *HeadersFrame) (Frame, error) {
 | 
			
		||||
	if fr.AllowIllegalReads {
 | 
			
		||||
		return nil, errors.New("illegal use of AllowIllegalReads with ReadMetaHeaders")
 | 
			
		||||
	}
 | 
			
		||||
@@ -1592,7 +1595,7 @@ func (fr *Framer) readMetaFrame(hf *HeadersFrame) (*MetaHeadersFrame, error) {
 | 
			
		||||
			}
 | 
			
		||||
			// It would be nice to send a RST_STREAM before sending the GOAWAY,
 | 
			
		||||
			// but the structure of the server's frame writer makes this difficult.
 | 
			
		||||
			return nil, ConnectionError(ErrCodeProtocol)
 | 
			
		||||
			return mh, ConnectionError(ErrCodeProtocol)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// Also close the connection after any CONTINUATION frame following an
 | 
			
		||||
@@ -1604,11 +1607,11 @@ func (fr *Framer) readMetaFrame(hf *HeadersFrame) (*MetaHeadersFrame, error) {
 | 
			
		||||
			}
 | 
			
		||||
			// It would be nice to send a RST_STREAM before sending the GOAWAY,
 | 
			
		||||
			// but the structure of the server's frame writer makes this difficult.
 | 
			
		||||
			return nil, ConnectionError(ErrCodeProtocol)
 | 
			
		||||
			return mh, ConnectionError(ErrCodeProtocol)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if _, err := hdec.Write(frag); err != nil {
 | 
			
		||||
			return nil, ConnectionError(ErrCodeCompression)
 | 
			
		||||
			return mh, ConnectionError(ErrCodeCompression)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if hc.HeadersEnded() {
 | 
			
		||||
@@ -1625,7 +1628,7 @@ func (fr *Framer) readMetaFrame(hf *HeadersFrame) (*MetaHeadersFrame, error) {
 | 
			
		||||
	mh.HeadersFrame.invalidate()
 | 
			
		||||
 | 
			
		||||
	if err := hdec.Close(); err != nil {
 | 
			
		||||
		return nil, ConnectionError(ErrCodeCompression)
 | 
			
		||||
		return mh, ConnectionError(ErrCodeCompression)
 | 
			
		||||
	}
 | 
			
		||||
	if invalid != nil {
 | 
			
		||||
		fr.errDetail = invalid
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										11
									
								
								vendor/golang.org/x/net/http2/server.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								vendor/golang.org/x/net/http2/server.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -732,11 +732,7 @@ func isClosedConnError(err error) bool {
 | 
			
		||||
		return false
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// TODO: remove this string search and be more like the Windows
 | 
			
		||||
	// case below. That might involve modifying the standard library
 | 
			
		||||
	// to return better error types.
 | 
			
		||||
	str := err.Error()
 | 
			
		||||
	if strings.Contains(str, "use of closed network connection") {
 | 
			
		||||
	if errors.Is(err, net.ErrClosed) {
 | 
			
		||||
		return true
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
@@ -1482,6 +1478,11 @@ func (sc *serverConn) processFrameFromReader(res readFrameResult) bool {
 | 
			
		||||
		sc.goAway(ErrCodeFlowControl)
 | 
			
		||||
		return true
 | 
			
		||||
	case ConnectionError:
 | 
			
		||||
		if res.f != nil {
 | 
			
		||||
			if id := res.f.Header().StreamID; id > sc.maxClientStreamID {
 | 
			
		||||
				sc.maxClientStreamID = id
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		sc.logf("http2: server connection error from %v: %v", sc.conn.RemoteAddr(), ev)
 | 
			
		||||
		sc.goAway(ErrCode(ev))
 | 
			
		||||
		return true // goAway will handle shutdown
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										15
									
								
								vendor/golang.org/x/net/http2/transport.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								vendor/golang.org/x/net/http2/transport.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -936,7 +936,20 @@ func (cc *ClientConn) setGoAway(f *GoAwayFrame) {
 | 
			
		||||
	}
 | 
			
		||||
	last := f.LastStreamID
 | 
			
		||||
	for streamID, cs := range cc.streams {
 | 
			
		||||
		if streamID > last {
 | 
			
		||||
		if streamID <= last {
 | 
			
		||||
			// The server's GOAWAY indicates that it received this stream.
 | 
			
		||||
			// It will either finish processing it, or close the connection
 | 
			
		||||
			// without doing so. Either way, leave the stream alone for now.
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
		if streamID == 1 && cc.goAway.ErrCode != ErrCodeNo {
 | 
			
		||||
			// Don't retry the first stream on a connection if we get a non-NO error.
 | 
			
		||||
			// If the server is sending an error on a new connection,
 | 
			
		||||
			// retrying the request on a new one probably isn't going to work.
 | 
			
		||||
			cs.abortStreamLocked(fmt.Errorf("http2: Transport received GOAWAY from server ErrCode:%v", cc.goAway.ErrCode))
 | 
			
		||||
		} else {
 | 
			
		||||
			// Aborting the stream with errClentConnGotGoAway indicates that
 | 
			
		||||
			// the request should be retried on a new connection.
 | 
			
		||||
			cs.abortStreamLocked(errClientConnGotGoAway)
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user