簡體   English   中英

Golang:http2和TLS握手錯誤

[英]Golang: http2 and TLS handshake errors

我有一個Go應用程序,啟用了http(在端口80上)和https(在端口443上)。

我不斷收到很多這三種錯誤:

  • http2: server: error reading preface from client 79.49.31.60:37993: timeout waiting for client preface

  • http: TLS handshake error from 151.38.29.250:44235: EOF

  • http: TLS handshake error from 2.239.197.163:6742: read tcp x.xxx.xxx.xxx:443->2.239.197.163:6742: i/o timeout

任何人都可以解釋這些是指什么?

請注意:所有這些請求都來自移動瀏覽器(在Android和iOS設備上)

http2: server: error reading preface from client 79.49.31.60:37993: timeout waiting for client preface

這意味着客戶端在服務器超時之前未能發送http2連接前言( https://tools.ietf.org/html/rfc7540#section-3.5 )。

http: TLS handshake error from 151.38.29.250:44235: EOF

這意味着當服務器和客戶端執行TLS握手時,服務器看到連接已關閉,即EOF。

http: TLS handshake error from 2.239.197.163:6742: read tcp x.xxx.xxx.xxx:443->2.239.197.163:6742: i/o timeout

這意味着當服務器在TLS握手期間等待從客戶端讀取時,客戶端在關閉連接之前沒有發送任何內容。

正如@JimB指出的那樣,那些看起來很正常。 如果您認為超時時間過早,您可以通過定義自定義net.http.Transport來定義自定義net.http.Transporthttpsnet.http.Transport ,並為超時設置更高的值。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM