Skip to content

Add tests to exercise H2 and chunked encoding - #6268

Merged
calavera merged 1 commit into
apache:masterfrom
shinrich:add_h2_chunked_encoding_test
Jan 15, 2020
Merged

calavera merged 1 commit into
apache:masterfrom
shinrich:add_h2_chunked_encoding_test

Conversation

@shinrich

Copy link
Copy Markdown
Member

Created these tests to track an issue we were seeing with H2 and chunked encoding. Already addressed on master, but seems like a good test to catch possible future regressions.

@shinrich shinrich added the Tests label Dec 18, 2019
@shinrich shinrich added this to the 10.0.0 milestone Dec 18, 2019
@shinrich shinrich self-assigned this Dec 18, 2019
@shinrich
shinrich force-pushed the add_h2_chunked_encoding_test branch from ed742ba to d34a32c Compare December 18, 2019 14:57
'map /delay-chunked-response http://127.0.0.1:8888'
)
ts.Disk.remap_config.AddLine(
'map / http://127.0.0.1:8888'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will the hard-coded port be an issue if Au test is changed to run multiple tests in parallel?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it would be better if I could fetch a dynamic port to use in the netcat script. Don't know how to do that. Will need to bug @dragon512 after the holidays.

@ywkaras

ywkaras commented Dec 24, 2019

Copy link
Copy Markdown

The new chunked_encoding_h2 test hangs in my build/test environment. Here is a glimpse of my package hell:

(conanrunenv) [root@d761696b8abf setup-work]# yum list installed | fgrep -i nghttp
httpd24-libnghttp2.x86_64            1.7.1-7.el7               @y-rhscl         
libnghttp2.x86_64                    1.31.1-2.el7              @epel            
nghttp2.x86_64                       1.31.1-2.el7              @epel            
oath-nghttp21.36.x86_64              1.36.0-79.el7             @edge_rpms-test  
oath-nghttp21.36-devel.x86_64        1.36.0-79.el7             @edge_rpms-test  
oath-nghttp21.39.x86_64              1.39.2-55.el7             @edge_rpms-test  
oath-nghttp21.39-devel.x86_64        1.39.2-77.el7             @edge_rpms-test  
(conanrunenv) [root@d761696b8abf setup-work]# nghttp --version
nghttp: error while loading shared libraries: libev.so.4: cannot open shared object file: No such file or directory
(conanrunenv) [root@d761696b8abf setup-work]# yum list installed | fgrep -i libev
libevent.x86_64                      2.0.21-4.el7              @non-core        
libevent-devel.x86_64                2.0.21-4.el7              @non-core        
oath-libev4.25.x86_64                4.25-5.el7                @edge_rpms-stable
oath-libev4.25-devel.x86_64          4.25-5.el7                @edge_rpms-stable
oath-libev4.27.x86_64                4.27-59.el7               @edge_rpms-test  
oath-libev4.27-devel.x86_64          4.27-59.el7               @edge_rpms-test  
oath-libevent2.1.x86_64              2.1.11-55.el7             @edge_rpms-test  
oath-libevent2.1-devel.x86_64        2.1.11-55.el7             @edge_rpms-test  
(conanrunenv) [root@d761696b8abf setup-work]# LD_PRELOAD=/opt/oath/libev/4.27/lib/libev.so nghttp --version
nghttp nghttp2/1.31.1
(conanrunenv) [root@d761696b8abf setup-work]# 

@calavera
calavera merged commit cf3d098 into apache:master Jan 15, 2020
@zwoop

zwoop commented Jan 15, 2020

Copy link
Copy Markdown
Contributor

hmmm, what happened here? Why is there a merge commit?

@zwoop

zwoop commented Jan 15, 2020

Copy link
Copy Markdown
Contributor

The commit to be cherry-picked seems to be d34a32c ?

@zwoop

zwoop commented Jan 15, 2020

Copy link
Copy Markdown
Contributor

Cherry-picked to v9.0.x branch.

@zwoop zwoop modified the milestones: 10.0.0, 9.0.0 Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants