kgiusti opened a new pull request #868:
URL: https://github.com/apache/qpid-dispatch/pull/868


   Using proton master (commit 341d30f8cff0ba98bac65604ad87e4d01062080c)
   To reproduce:
   
   $ mkdir BUILD; cd BUILD; cmake ..; make
   $ python tests/run.py "-m" "unittest" "-v" 
"system_tests_http1_adaptor.Http1AdaptorEdge2EdgeTest"
   
   You should see some output, then the test will hang until it times out.  If 
you reproduce the problem there will be console output with something like this:
   
   FIXME                                                                        
                                                                     
   SETUP DONE                                                                   
                                                                     
   test_01_streaming (system_tests_http1_adaptor.Http1AdaptorEdge2EdgeTest)     
                                                                     
   Test multiple clients sending streaming messages in parallel ... 2020-10-07 
11:18:47.323080 TestServer listening on :9090                         
   SERVERS UP                                                                   
                                                                     
   SPAWNING CLIENTS                                                             
                                                                     
   WAITING CLIENTS                                                              
                                                                     
    CHUNK READ HEADER...                                                        
                                                                     
    CHUNK HEADER=b'1f9' (505)                                                   
                                                                     
    CHUNK DATA (LEN)=507                                                        
                                                                     
    CHUNK READ HEADER...                                                        
                                                                     
    CHUNK HEADER=b'000000' (0)                                                  
                                                                     
    LAST CHUNK                                                                  
                                                                     
    CHUNKED 
BODY=b'000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\
   
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\
   
00000000000000000000000000000000000000000000000000000000000000000000000000000000**\x00Su\xb0\x00\x00\x02\x00**000000000000000000000000000000000000000\
   
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
                                         
   SERVER SHUTDOWN 11                                                           
                                                                     
   2020-10-07 11:18:47.752470 TestServer :9090 shutting down                    
                                                                     
   CLIENT POST SHUTDOWN...                                                      
                                                                     
   2020-10-07 11:18:47.772930 TestServer :9090 closed
   <snip>
   
   The test sends an http message with a chunked body encoding.  Each chunk is 
505 bytes long and is patterned with '0' for the first chunk, '1' for the 
second, ...  up to '9' then the last chunk is filled with 'a'. 
   
   In the above console output you can see that some extra data appears in the 
chunk (highlighted).
   
   The router will record the contents of raw buffers that have been passed to 
the raw connection, before and after the buffers are written.  See the file 
   
   
./system_test.dir/system_tests_http1_adaptor/Http1AdaptorEdge2EdgeTest/setUpClass/EA2-3.out
   
   And look for statements like this:
   
   [C1] **Raw Write**: Ptr=0x15dc8a0 len=128                                    
                                                                         
     value='1f9^M                                                               
                                                                     
   
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
                      
                                                                                
                                                                     
   [C1] Raw Write: Ptr=0x17b9fe0 len=512                                        
                                                                     
     
value='0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\
   
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
                                                  
                                                                                
                                                                     
   [C1] Raw Write: Ptr=0x17ba0cf len=273                                        
                                                                     
     
value='0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\
   000000000000000^M                                                            
                                                                     
   1f9^M 
   
   <snip>
   [C1] **Raw Written**: Ptr=0x15dc8a0 len=128                                  
                                                                         
     value='1f9^M                                                               
                                                                     
   
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
                      
                                                                                
                                                                     
   [C1] Raw Written: Ptr=0x17b9fe0 len=512                                      
                                                                     
     
value='0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\
   
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
                                                  
                                                                                
                                                                     
   [C1] Raw Written: Ptr=0x17ba0cf len=273                                      
                                                                     
     
value='0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\
   000000000000000^M                                                            
                                                                     
   1f9^M   
   
   use tcpdump/wireshark to capture messages sent to port 8080 (client->router) 
and port 9090 (router->server) to see what is appearing on the wire 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to