# Connection error (127.0.0.1#5335): TCP connection failed while receiving payload length from upstream (Connection prematurely closed by remote server)

**URL:** <https://discourse.pi-hole.net/t/connection-error-127-0-0-1-5335-tcp-connection-failed-while-receiving-payload-length-from-upstream-connection-prematurely-closed-by-remote-server/76148>\
**Category:** Help\
**Created:** [February 20, 2025, 2:12pm UTC](https://discourse.pi-hole.net/t/connection-error-127-0-0-1-5335-tcp-connection-failed-while-receiving-payload-length-from-upstream-connection-prematurely-closed-by-remote-server/76148 "2025-02-20T14:12:49Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Angry\_Beaver](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/angry_beaver/32/45864_2.png) [@Angry\_Beaver](https://discourse.pi-hole.net/u/Angry_Beaver)\
**Post date:** [February 21, 2025, 7:07pm UTC](https://discourse.pi-hole.net/t/connection-error-127-0-0-1-5335-tcp-connection-failed-while-receiving-payload-length-from-upstream-connection-prematurely-closed-by-remote-server/76148/8 "2025-02-21T19:07:02Z")

</div>

You might be referring to my post over there. Though I changed mine to 25 instead of 40.

Been going a little over 4 hrs without any errors. I also made a few more changes before this which did seem to help, but ultimately this is what seems to have solved it.

Now it might start throwing errors again when I make this post, but so far this has been the longest since V6 that I have gone without errors.

 ![image](https://discourse.pi-hole.net/uploads/default/original/3X/6/6/66182161fb83f875f2f00c19805c61ebe8574927.jpeg)

---

_[View the full topic](https://discourse.pi-hole.net/t/connection-error-127-0-0-1-5335-tcp-connection-failed-while-receiving-payload-length-from-upstream-connection-prematurely-closed-by-remote-server/76148)._
