Content
Updated by Pavel Balashou 18 days ago
It can be reenabled now, because the issue with hanging process seems to be fixed in [1.2.4](https://gitlab.com/os85/httpx/-/blob/master/doc/release_notes/1_2_4.md?ref_type=heads) [https://github.com/HoneyryderChuck/httpx/issues/43](https://github.com/HoneyryderChuck/httpx/issues/43)
Steps to reproduce: [1.2.4](https://gitlab.com/os85/httpx/-/blob/master/doc/release_notes/1_2_4.md?ref_type=heads).
1\. Start webrick server:
```Ruby
#!/usr/bin/env ruby
require 'webrick'
server = WEBrick::HTTPServer.new(
:Port => 8543,
)
server.mount_proc '/' do |req, res|
res.body = 'Example Domain Cleartext'
end
server.start
```
2\. Install httpx version 1.2.3 and run from irb:
Think of adding a test. Reproduction script is provided. Basically sleep time should be higher than keep\_alive\_timeout.
```ruby
require 'httpx'
session = HTTPX
.plugin(:persistent) # persistent plugin enables retries plugin under the hood
.with(debug:
.with(
debug: $stdout,
debug_level: 3,
timeout: {
connect_timeout: 3,
operation_timeout: 10,
request_timeout: 10,
write_timeout: 3,
read_timeout: 3,
keep_alive_timeout: 5
}) 20
}
)
100.times { session.post("http://localhost:8543"); session.post("https://cloud.greenlobster-mt.com/ocs/v1.php/apps/integration_openproject/filesinfo"); sleep 7 24 }
```
Steps to reproduce:
1\. Start webrick server:
```Ruby
#!/usr/bin/env ruby
require 'webrick'
server = WEBrick::HTTPServer.new(
:Port => 8543,
)
server.mount_proc '/' do |req, res|
res.body = 'Example Domain Cleartext'
end
server.start
```
2\. Install httpx version 1.2.3 and run from irb:
require 'httpx'
session = HTTPX
.with(debug:
.with(
debug:
})
)