python-hyper / hyper

HTTP/2 for Python.
http://hyper.rtfd.org/en/latest/
MIT License
1.05k stars 191 forks source link

The orders of sending packages in Debug mode and Run mode are different. #438

Open FrankHuy opened 3 years ago

FrankHuy commented 3 years ago

When I use the method request in hyper.http20.connection,it's finally leading to the block of method named endheaders. image When I was debugging the program, the order of packets is like the pic.Data packet is actually after WINDOW_UPDATE[1] packet. image But I just let them running without debug.It was running like the pic.The first data packet was sent before the WINDOW_UPDATE[1] packet.And it wasn't recognized to be HTTP2 protocol packet by Wireshark. image It's so wired!!Please help me!Thx!!