wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wget2 | Added simulation of interrupting responses while sending respons


From: Rohan Fletcher
Subject: wget2 | Added simulation of interrupting responses while sending response body in test server (!465)
Date: Wed, 29 Jan 2020 02:44:57 +0000


Rohan Fletcher created a merge request: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/465

Project:Branches: rohfle/wget2:rohfle-response-interrupts-testing to 
gnuwget/wget2:master
Author:    Rohan Fletcher



### What
As part of efforts to fix https://gitlab.com/gnuwget/wget2/issues/447, I have 
implemented simulating interrupts of responses on the test server.

### Config
```
wget_test_url_t {
  .interrupt_response_mode = INTERRUPT_RESPONSE_DURING_BODY or 
INTERRUPT_RESPONSE_DISABLE
  .interrupt_response_after_nbytes = 0...SIZE_MAX
}
```

### How it works
- When enabled, responses use `MHD_create_response_from_callback` with callback 
that returns status code `MHD_CONTENT_READER_END_WITH_ERROR` when 
`interrupt_response_after_nbytes` have been sent.

### Approver's checklist:

* [ ] The author has submitted the FSF Copyright Assignment and is listed in 
AUTHORS
* [ ] There is a test suite reasonably covering new functionality or 
modifications
* [ ] Function naming, parameters, return values, types, etc., are consistent 
with existing code
* [ ] This feature/change has adequate documentation added (if appropriate)
* [ ] No obvious mistakes / misspelling in the code

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/465
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]