Content
View differences
Updated by Pavel Balashou about 2 years 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).
Think of adding a test. Reproduction script is provided. Basically sleep time should be higher than keep\_alive\_timeout.
```ruby
\`\`\`ruby
require 'httpx'
'httpx'
session = HTTPX
.plugin(:persistent) # persistent plugin enables retries plugin under the hood
.with(
debug:
debug: $stdout,
debug_level:
debug\_level: 3,
timeout:
timeout: {
connect_timeout:
connect\_timeout: 3,
operation_timeout:
operation\_timeout: 10,
request_timeout:
request\_timeout: 10,
write_timeout:
write\_timeout: 3,
read_timeout:
read\_timeout: 3,
keep_alive_timeout:
keep\_alive\_timeout: 20
}
)
100.times { session.post("https://cloud.greenlobster-mt.com/ocs/v1.php/apps/integration_openproject/filesinfo"); session.post("https://cloud.greenlobster-mt.com/ocs/v1.php/apps/integration\_openproject/filesinfo"); sleep 24 }
```
\`\`\`
Think of adding a test. Reproduction script is provided. Basically sleep time should be higher than keep\_alive\_timeout.
```ruby
\`\`\`ruby
debug:
debug:
debug_level:
debug\_level:
timeout:
timeout:
connect_timeout:
connect\_timeout:
operation_timeout:
operation\_timeout:
request_timeout:
request\_timeout:
write_timeout:
write\_timeout:
read_timeout:
read\_timeout:
keep_alive_timeout:
keep\_alive\_timeout:
```
\`\`\`