Bug 58977 - Wrong saved content
Summary: Wrong saved content
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_socache_(dbm|dc|memcache|shmcb) (show other bugs)
Version: 2.4.18
Hardware: PC All
: P2 major with 3 votes (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-06 16:44 UTC by Bilyana
Modified: 2016-02-08 15:26 UTC (History)
1 user (show)



Attachments
applyed original and saved data (28.25 KB, text/plain)
2016-02-06 16:44 UTC, Bilyana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bilyana 2016-02-06 16:44:25 UTC
Created attachment 33533 [details]
applyed original and saved data

I have a host (Site) with proxy to another host (Api) and memcache enabled to fallback Api crashes.

When Api returns a string  (length=14444) it was saved to memcache.
When Api returns 500 Server error on same request Apache use saved content, but it is wrong. The beginning of saved string is repeated chunk of ending chars of original response.

Error log seems OK:
cache hit: 500 status; stale content returned 200 14444
Comment 1 Bilyana 2016-02-06 16:50:38 UTC
Original string:
{"status":"success","status_msg":"","data":{"...

Returned string:
tension":"","file_size":0,"path":"","url":"",...