---
title: "nginx-stream-tcp反向代理报错"
author: "nicegege"
date: "2015-12-09T16:37:21Z"
tags: []
categories: ["开源软件"]
slug: "nginx-stream-tcp"
draft: false
lastmod: "2015-12-09T16:37:21Z"
id: 2262945
url: "https://nicegege.iteye.com/blog/2262945"
---

nginx做了tcp反向代理,运行一段时间以后，会报错：

2015/12/09 05:40:20 \[error] 46390#0: \*762641 recv() failed (104: Connection reset by peer) while proxying connection, client: 111.200.57.242, server: 0.0.0.0:3101, upstream: "10.8.8.20:3101", bytes from/to client:1959/1534, bytes from/to upstream:1534/1959