qdeconinck / mp-quic

Please read https://multipath-quic.org/2017/12/09/artifacts-available.html to figure out how to setup the code.
MIT License
176 stars 71 forks source link

enable createpath ,run the client and server in the example,why didn't crypto handshake complete in time #24

Closed li237340453 closed 3 years ago

li237340453 commented 3 years ago

[root@localhost client]# go run main.go https://liyanjunlab.vip:6121 GET https://liyanjunlab.vip:6121 Created pconn_manager, any on [::]:55716 Starting new connection to liyanjunlab.vip ([::]:55716 -> 192.168.237.150:6121), connectionID 9e94571b99992a51, version 512 Sending CHLO: SNI : "liyanjunlab.vip" VER : "Q512" CCS : "\x01\xe8\x81`\x92\x92\x1a\xe8~퀆\xa2\x15\x82\x91" MSPC: "d\x00\x00\x00" PDMD: "X509" ICSL: "\x1e\x00\x00\x00" MIDS: "d\x00\x00\x00" CFCW: "\x00\xc0\x00\x00" SFCW: "\x00\x80\x00\x00" PAD : (893 bytes) -> Sending packet 0x1 (1069 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.StreamFrame{StreamID: 1, FinBit: false, Offset: 0x0, Data length: 0x410, Offset + Data length: 0x410} Dequeueing handshake retransmission for packet 0x1 -> Sending packet 0x2 (1072 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.StopWaitingFrame{LeastUnacked: 0x2, PacketNumberLen: 0x2} -> &wire.StreamFrame{StreamID: 1, FinBit: false, Offset: 0x0, Data length: 0x410, Offset + Data length: 0x410} Dequeueing handshake retransmission for packet 0x2 -> Sending packet 0x3 (1072 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.StopWaitingFrame{LeastUnacked: 0x3, PacketNumberLen: 0x2} -> &wire.StreamFrame{StreamID: 1, FinBit: false, Offset: 0x0, Data length: 0x410, Offset + Data length: 0x410} Queueing packet 0x3 for retransmission (RTO), 1 outstanding Dequeueing handshake retransmission for packet 0x3 -> Sending packet 0x4 (1072 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.StopWaitingFrame{LeastUnacked: 0x4, PacketNumberLen: 0x2} -> &wire.StreamFrame{StreamID: 1, FinBit: false, Offset: 0x0, Data length: 0x410, Offset + Data length: 0x410} -> Sending packet 0x5 (33 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.PathsFrame{MaxNumPaths:0xff, NumPaths:0x1, PathIDs:[]protocol.PathID{0x0}, RemoteRTTs:[]time.Duration{3600000000000}} Queueing packet 0x4 for retransmission (RTO), 2 outstanding Queueing packet 0x5 for retransmission (RTO), 1 outstanding Dequeueing handshake retransmission for packet 0x4 -> Sending packet 0x6 (1072 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.StopWaitingFrame{LeastUnacked: 0x6, PacketNumberLen: 0x2} -> &wire.StreamFrame{StreamID: 1, FinBit: false, Offset: 0x0, Data length: 0x410, Offset + Data length: 0x410} Dequeueing handshake retransmission for packet 0x5 -> Sending packet 0x7 (36 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.StopWaitingFrame{LeastUnacked: 0x6, PacketNumberLen: 0x2} -> &wire.PathsFrame{MaxNumPaths:0xff, NumPaths:0x1, PathIDs:[]protocol.PathID{0x0}, RemoteRTTs:[]time.Duration{3600000000000}} -> Sending packet 0x8 (33 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.PathsFrame{MaxNumPaths:0xff, NumPaths:0x1, PathIDs:[]protocol.PathID{0x0}, RemoteRTTs:[]time.Duration{3600000000000}} Queueing packet 0x6 for retransmission (RTO), 3 outstanding Queueing packet 0x7 for retransmission (RTO), 2 outstanding Queueing packet 0x8 for retransmission (RTO), 1 outstanding Dequeueing handshake retransmission for packet 0x6 -> Sending packet 0x9 (1072 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.StopWaitingFrame{LeastUnacked: 0x9, PacketNumberLen: 0x2} -> &wire.StreamFrame{StreamID: 1, FinBit: false, Offset: 0x0, Data length: 0x410, Offset + Data length: 0x410} Dequeueing handshake retransmission for packet 0x7 -> Sending packet 0xa (36 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.StopWaitingFrame{LeastUnacked: 0x9, PacketNumberLen: 0x2} -> &wire.PathsFrame{MaxNumPaths:0xff, NumPaths:0x1, PathIDs:[]protocol.PathID{0x0}, RemoteRTTs:[]time.Duration{3600000000000}} Dequeueing handshake retransmission for packet 0x8 -> Sending packet 0xb (36 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.StopWaitingFrame{LeastUnacked: 0x9, PacketNumberLen: 0x2} -> &wire.PathsFrame{MaxNumPaths:0xff, NumPaths:0x1, PathIDs:[]protocol.PathID{0x0}, RemoteRTTs:[]time.Duration{3600000000000}} -> Sending packet 0xc (33 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.PathsFrame{MaxNumPaths:0xff, NumPaths:0x1, PathIDs:[]protocol.PathID{0x0}, RemoteRTTs:[]time.Duration{3600000000000}} Queueing packet 0x9 for retransmission (RTO), 4 outstanding Queueing packet 0xa for retransmission (RTO), 3 outstanding Queueing packet 0xb for retransmission (RTO), 2 outstanding Queueing packet 0xc for retransmission (RTO), 1 outstanding Dequeueing handshake retransmission for packet 0x9 -> Sending packet 0xd (1072 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.StopWaitingFrame{LeastUnacked: 0xd, PacketNumberLen: 0x2} -> &wire.StreamFrame{StreamID: 1, FinBit: false, Offset: 0x0, Data length: 0x410, Offset + Data length: 0x410} Dequeueing handshake retransmission for packet 0xa -> Sending packet 0xe (36 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.StopWaitingFrame{LeastUnacked: 0xd, PacketNumberLen: 0x2} -> &wire.PathsFrame{MaxNumPaths:0xff, NumPaths:0x1, PathIDs:[]protocol.PathID{0x0}, RemoteRTTs:[]time.Duration{3600000000000}} Dequeueing handshake retransmission for packet 0xb -> Sending packet 0xf (36 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.StopWaitingFrame{LeastUnacked: 0xd, PacketNumberLen: 0x2} -> &wire.PathsFrame{MaxNumPaths:0xff, NumPaths:0x1, PathIDs:[]protocol.PathID{0x0}, RemoteRTTs:[]time.Duration{3600000000000}} Dequeueing handshake retransmission for packet 0xc -> Sending packet 0x10 (36 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.StopWaitingFrame{LeastUnacked: 0xd, PacketNumberLen: 0x2} -> &wire.PathsFrame{MaxNumPaths:0xff, NumPaths:0x1, PathIDs:[]protocol.PathID{0x0}, RemoteRTTs:[]time.Duration{3600000000000}} -> Sending packet 0x11 (33 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.PathsFrame{MaxNumPaths:0xff, NumPaths:0x1, PathIDs:[]protocol.PathID{0x0}, RemoteRTTs:[]time.Duration{3600000000000}} Closing session with error: HandshakeTimeout: Crypto handshake did not complete in time. -> Sending packet 0x12 (76 bytes) for connection 9e94571b99992a51 on path 0, unencrypted -> &wire.ConnectionCloseFrame{ErrorCode:0x43, ReasonPhrase:"Crypto handshake did not complete in time."} Connection 9e94571b99992a51 closed. panic: Get "https://liyanjunlab.vip:6121": HandshakeTimeout: Crypto handshake did not complete in time.

goroutine 6 [running]: main.main.func1(0xc000075170, 0xc000022334, 0x7ffe40e357fd, 0x1c) /usr/local/gopath/src/github.com/lucas-clemente/quic-go/example/client/main.go:56 +0x2f9 created by main.main /usr/local/gopath/src/github.com/lucas-clemente/quic-go/example/client/main.go:53 +0x3ba exit status 2

mainrs commented 1 year ago

Did you manage to solve this or found the issue?