[GH-ISSUE #4336] connection write timeout #3422

Closed
opened 2026-05-05 14:12:20 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @lmxslpc on GitHub (Jul 13, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4336

Bug Description

连接这个frp.freefrp.net公共服务器
不知道是不是我的原因,对方frp服务端版本0.56.0,我尝试过好几个版本的客户端都一样报错connection write timeout

frpc Version

0.56.0

frps Version

0.56.0

System Architecture

x86_64

Configurations

#frpc.toml

serverAddr = "frp.freefrp.net"
serverPort = 7000
auth.method = "token"
auth.token = "freefrp.net"

Logs

./frpc -c ./frpc.toml

2024-07-12 23:12:20.516 [I] [sub/root.go:142] start frpc service for config file [./frpc.toml]
2024-07-12 23:12:20.516 [I] [client/service.go:294] try to connect to server...
2024-07-12 23:12:30.632 [W] [client/service.go:297] connect to server error: connection write timeout
2024-07-12 23:12:30.632 [I] [sub/root.go:160] frpc service for config file [./frpc.toml] stopped
login to the server failed: connection write timeout. With loginFailExit enabled, no additional retries will be attempted

=====================================================================

openssl s_client -connect frp.freefrp.net:7000

CONNECTED(00000003)
depth=0 
verify error:num=18:self signed certificate
verify return:1
depth=0 
verify error:num=10:certificate has expired
notAfter=Jan  1 00:00:00 1 GMT
verify return:1
depth=0 
notAfter=Jan  1 00:00:00 1 GMT
verify return:1
---
Certificate chain
 0 s:
   i:
---
Server certificate
-----BEGIN CERTIFICATE-----
MIICfTCCAWWgAwIBAgIBATANBgkqhkiG9w0BAQsFADAAMCIYDzAwMDEwMTAxMDAw
MDAwWhgPMDAwMTAxMDEwMDAwMDBaMAAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
ggEKAoIBAQDlArnBn8xgH7Q5eE6n1MIhM0WauQTPrjOG1o26XRruXEa5JxEPlIGX
kaVBAw2BMJXgGSSm9msotDKjjf0N6nYsEw9K6xjN4QGlEqD18ZxRYo1Xh8/WEZRh
qYssw615doCcn7r4dcoPA0zRzEuwQ3UhzbGKIhg3rFp5eW85bJtefyYTm1wMeq18
j6od1kVsDtR4zVppz2m9nVY7E+XyXO3Jjo/pWiv1iov4Eaiqq40K0x4Y0jCU1wNp
FWZ1unhmi4/QASCk5KQI1t4CcBXtzrN/sTCrZZtKi27UUCerrd22R1+LfC5cvDoC
N5eNfIM02ESty4sP/RqfKB3zpIZI3vE1AgMBAAEwDQYJKoZIhvcNAQELBQADggEB
AEM8RnJTDdNa3itQREc9Un72NcKfZdKBgQ/lli0vxbaqcTrTxEB39l4Sdw/11FTV
VF1roXrlEeNzSSOLPwpm31mtZz85u8mRud4Yae/jk/BwXcHGKiUg9O5T6YPI3CPM
R1gG6v7xu3yjf1RNIzL03Iw891sbWZUfjak6JMnrtug/CT+1GjB4JJRoJmpO5xln
4/e3voioAkTatHC3Nohmoweq3wb1qDbcKFCOhPQxSftYBIWLoOFCHIQkLi1YnmUr
NBMoUPBmDybY6kA6+vcOZFK/PKK9IWZLBshQZkBfNMifPxkh7UP6cyEKyAHK+wjD
JBXqYyk5XKKo8ImaXbU58uo=
-----END CERTIFICATE-----
subject=

issuer=

---
No client certificate CA names sent
Peer signing digest: SHA256
Peer signature type: RSA-PSS
Server Temp Key: X25519, 253 bits
---
SSL handshake has read 1181 bytes and written 371 bytes
Verification error: certificate has expired
---
New, TLSv1.3, Cipher is TLS_AES_128_GCM_SHA256
Server public key is 2048 bit
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 10 (certificate has expired)
---
---
Post-Handshake New Session Ticket arrived:
SSL-Session:
    Protocol  : TLSv1.3
    Cipher    : TLS_AES_128_GCM_SHA256
    Session-ID: FFB760E832A3DE828994DD97F08C1DBBED1D2EBF7E15C383217E062B9872B2ED
    Session-ID-ctx: 
    Resumption PSK: 13297E7B89ED149FB0DA4893DE4EE9EFBDF32959BA7994EF42D7081E77535AEA
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 604800 (seconds)
    TLS session ticket:
    0000 - 6c 48 a6 7f 93 0b 67 9f-70 2e c7 d3 70 3b 0a 7b   lH....g.p...p;.{
    0010 - 90 b5 20 b1 83 3c 70 ac-e5 58 94 95 14 4c 73 70   .. ..<p..X...Lsp
    0020 - 62 60 78 5a ea 0f 1e a5-f1 ee 99 b0 46 61 6a 25   b`xZ........Faj%
    0030 - 6e 5b ca 41 a1 4f 2c e4-a3 be 1d e2 62 6e 68 48   n[.A.O,.....bnhH
    0040 - 41 4d d6 2b f3 c3 f1 99-ec 68 c2 b6 ca 55 1b 73   AM.+.....h...U.s
    0050 - b4 22 6c 4c 65 c2 bf fd-b1 ef 98 75 c2 d2 27 88   ."lLe......u..'.
    0060 - 85 a0 da b7 2b 21 e4 67-34                        ....+!.g4

    Start Time: 1720842603
    Timeout   : 7200 (sec)
    Verify return code: 10 (certificate has expired)
    Extended master secret: no
    Max Early Data: 0
---
read R BLOCK
closed

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @lmxslpc on GitHub (Jul 13, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4336 ### Bug Description 连接这个frp.freefrp.net公共服务器 不知道是不是我的原因,对方frp服务端版本0.56.0,我尝试过好几个版本的客户端都一样报错connection write timeout ### frpc Version 0.56.0 ### frps Version 0.56.0 ### System Architecture x86_64 ### Configurations #frpc.toml serverAddr = "frp.freefrp.net" serverPort = 7000 auth.method = "token" auth.token = "freefrp.net" ### Logs ./frpc -c ./frpc.toml ``` 2024-07-12 23:12:20.516 [I] [sub/root.go:142] start frpc service for config file [./frpc.toml] 2024-07-12 23:12:20.516 [I] [client/service.go:294] try to connect to server... 2024-07-12 23:12:30.632 [W] [client/service.go:297] connect to server error: connection write timeout 2024-07-12 23:12:30.632 [I] [sub/root.go:160] frpc service for config file [./frpc.toml] stopped login to the server failed: connection write timeout. With loginFailExit enabled, no additional retries will be attempted ``` ===================================================================== openssl s_client -connect frp.freefrp.net:7000 ``` CONNECTED(00000003) depth=0 verify error:num=18:self signed certificate verify return:1 depth=0 verify error:num=10:certificate has expired notAfter=Jan 1 00:00:00 1 GMT verify return:1 depth=0 notAfter=Jan 1 00:00:00 1 GMT verify return:1 --- Certificate chain 0 s: i: --- Server certificate -----BEGIN CERTIFICATE----- MIICfTCCAWWgAwIBAgIBATANBgkqhkiG9w0BAQsFADAAMCIYDzAwMDEwMTAxMDAw MDAwWhgPMDAwMTAxMDEwMDAwMDBaMAAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw ggEKAoIBAQDlArnBn8xgH7Q5eE6n1MIhM0WauQTPrjOG1o26XRruXEa5JxEPlIGX kaVBAw2BMJXgGSSm9msotDKjjf0N6nYsEw9K6xjN4QGlEqD18ZxRYo1Xh8/WEZRh qYssw615doCcn7r4dcoPA0zRzEuwQ3UhzbGKIhg3rFp5eW85bJtefyYTm1wMeq18 j6od1kVsDtR4zVppz2m9nVY7E+XyXO3Jjo/pWiv1iov4Eaiqq40K0x4Y0jCU1wNp FWZ1unhmi4/QASCk5KQI1t4CcBXtzrN/sTCrZZtKi27UUCerrd22R1+LfC5cvDoC N5eNfIM02ESty4sP/RqfKB3zpIZI3vE1AgMBAAEwDQYJKoZIhvcNAQELBQADggEB AEM8RnJTDdNa3itQREc9Un72NcKfZdKBgQ/lli0vxbaqcTrTxEB39l4Sdw/11FTV VF1roXrlEeNzSSOLPwpm31mtZz85u8mRud4Yae/jk/BwXcHGKiUg9O5T6YPI3CPM R1gG6v7xu3yjf1RNIzL03Iw891sbWZUfjak6JMnrtug/CT+1GjB4JJRoJmpO5xln 4/e3voioAkTatHC3Nohmoweq3wb1qDbcKFCOhPQxSftYBIWLoOFCHIQkLi1YnmUr NBMoUPBmDybY6kA6+vcOZFK/PKK9IWZLBshQZkBfNMifPxkh7UP6cyEKyAHK+wjD JBXqYyk5XKKo8ImaXbU58uo= -----END CERTIFICATE----- subject= issuer= --- No client certificate CA names sent Peer signing digest: SHA256 Peer signature type: RSA-PSS Server Temp Key: X25519, 253 bits --- SSL handshake has read 1181 bytes and written 371 bytes Verification error: certificate has expired --- New, TLSv1.3, Cipher is TLS_AES_128_GCM_SHA256 Server public key is 2048 bit Secure Renegotiation IS NOT supported Compression: NONE Expansion: NONE No ALPN negotiated Early data was not sent Verify return code: 10 (certificate has expired) --- --- Post-Handshake New Session Ticket arrived: SSL-Session: Protocol : TLSv1.3 Cipher : TLS_AES_128_GCM_SHA256 Session-ID: FFB760E832A3DE828994DD97F08C1DBBED1D2EBF7E15C383217E062B9872B2ED Session-ID-ctx: Resumption PSK: 13297E7B89ED149FB0DA4893DE4EE9EFBDF32959BA7994EF42D7081E77535AEA PSK identity: None PSK identity hint: None SRP username: None TLS session ticket lifetime hint: 604800 (seconds) TLS session ticket: 0000 - 6c 48 a6 7f 93 0b 67 9f-70 2e c7 d3 70 3b 0a 7b lH....g.p...p;.{ 0010 - 90 b5 20 b1 83 3c 70 ac-e5 58 94 95 14 4c 73 70 .. ..<p..X...Lsp 0020 - 62 60 78 5a ea 0f 1e a5-f1 ee 99 b0 46 61 6a 25 b`xZ........Faj% 0030 - 6e 5b ca 41 a1 4f 2c e4-a3 be 1d e2 62 6e 68 48 n[.A.O,.....bnhH 0040 - 41 4d d6 2b f3 c3 f1 99-ec 68 c2 b6 ca 55 1b 73 AM.+.....h...U.s 0050 - b4 22 6c 4c 65 c2 bf fd-b1 ef 98 75 c2 d2 27 88 ."lLe......u..'. 0060 - 85 a0 da b7 2b 21 e4 67-34 ....+!.g4 Start Time: 1720842603 Timeout : 7200 (sec) Verify return code: 10 (certificate has expired) Extended master secret: no Max Early Data: 0 --- read R BLOCK closed ``` ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Jul 15, 2024):

请在相应的服务者处提问。

<!-- gh-comment-id:2227611288 --> @fatedier commented on GitHub (Jul 15, 2024): 请在相应的服务者处提问。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3422
No description provided.