Cookie-encryption issue

After encrypting the Cookie for a URL at F5 Load balancer the server mapped to that URL was unable to perform reverse proxy .

A-URL → A-server (reverse proxy to B-url) → B-URL → B-Server

We get error from server as below (104)Connection reset by peer: proxy: error reading status line from remote server :443 proxy: Error reading from remote server returned by /path/