#38226 closed defect (bug) (fixed)
"cURL error 23: Failed writing body" when updating plugins or themes
| Reported by: | SergeyBiryukov | Owned by: | dd32 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7.1 |
| Component: | HTTP API | Version: | 4.6 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
After upgrading to 4.6, some users reported an error when upgrading plugins or themes:
Download failed. cURL error 23: Failed writing body (624 != 811)
Apparently it happens if mbstring.func_overload is enabled and body length is calculated incorrectly.
Previously, this was solved by using mbstring_binary_safe_encoding()/reset_mbstring_encoding(), see [25348].
However, [37428] removed those calls, and it seems like Requests is not mbstring-aware.
Attachments (1)
Change History (10)
#3
@
10 years ago
opened https://github.com/rmccue/Requests/issues/244 upstream
#4
@
10 years ago
Got at least one report that the patch does resolve the issue.
Found another thread on the English forums, commented there:
https://wordpress.org/support/topic/after-update-to-46-keep-getting-curl-error-23/page/2/#post-8157376
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
38226.patch restores
mbstring_binary_safe_encoding()/reset_mbstring_encoding()calls.Needs testing on the affected installs.