如果是自己用c++写的server,这个错误信息一般表示客户端主动断开了连接
nginx中也有类似的错误信息,具体如下
原文:http://blog.csdn.net/kevin6216/article/details/8669293
Nginx + uWSGI,get请求头过大,报502 Bad Gateway
如下,较大的get请求:
http://192.168.1.200:10000/planner/query?getdata=1&query=%7B%22activeDayspan%22%3A%227%22%2C%22condition%22%3A%22%22%2C%22hitLimits%22%3A%22%22%2C%22groupby%22%3A%5B%5B%22wrappedInterests%22%2C400%2C%5B%5D%5D%2C%5B%22demographicGender%22%2C20%2C%5B%5D%5D%2C%5B%22demographicIncome%22%2C20%2C%5B%5D%5D%2C%5B%22demographicEducation%22%2C20%2C%5B%5D%5D%2C%5B%22umaAdsImpression%22%2C20%2C%5B%5D%5D%2C%5B%22umaCreativeImpression%22%2C20%2C%5B%5D%5D%2C%5B%22umaAdsClick%22%2C20%2C%5B%5D%5D%2C%5B%22umaCreativeClick%22%2C20%2C%5B%5D%5D%2C%5B%22dspCreativeImpression%22%2C20%2C%5B%5D%5D%2C%5B%22dspCreativeClick%22%2C20%2C%5B%5D%5D%2C%5B%22dspAdsImpression%22%2C10%2C%5B%5D%5D%2C%5B%22dspAdsClick%22%2C10%2C%5B%5D%5D%2C%5B%22viewthrough%22%2C20%2C%5B%5D%5D%2C%5B%22interests%22%2C10%2C%5B%5D%5D%2C%5B%22pid%22%2C20%2C%5B%5D%5D%2C%5B%22keyword%22%2C20%2C%5B%5D%5D%2C%5B%22companyVisited%22%2C10%2C%5B%5D%5D%2C%5B%22companyADViewed%22%2C20%2C%5B%5D%5D%2C%5B%22remarketing%22%2C20%2C%5B%5D%5D%2C%5B%22country%22%2C20%2C%5B%5D%5D%2C%5B%22province%22%2C50%2C%5B%5D%5D%2C%5B%22city%22%2C20%2C%5B%5D%5D%5D%7D&_=0.2326625478453934
NGINX中的error.log日志记录,表现为,类似:
recv() failed (104: Connection reset by peer) while reading response header from upstream
解决办法,在uwsgi中添加参数:
/usr/local/sbin/uwsgi -s 127.0.0.1:1182 -M -R 200 -p 4 --virtualenv="/usr/local/python-env/test-env" --env "DJANGO_SETTINGS_MODULE=settings" -w "django.core.handlers.wsgi:WSGIHandler()" --post-buffering32768
--buffer-size 32768
相关推荐
linux iptables防火墙黑名单(封IP) Connection reset by peer
标题:“Software caused connection abort: recv failed” 描述:“Software caused connection abort: recv failed” 知识点解析: ### 背景介绍 “Software caused connection abort: recv failed”这一错误...
2. **`"recv() failed (104: Connection reset by peer)"`**:这通常是因为服务器的并发连接数超过了其承载能力,或者是客户端提前关闭了连接。 3. **`"(111: Connection refused) while connecting to upstream"`**...
mount.nfs: Connection timed out
ERR_CONNECTION_RESET的解释是:ERR-错误CONNECTION-连接-RESET-重复 Google没有对此错误的解决方案因此会再次提示用户这个网站含有未知错误
iscsi错误discovery session to ip failed to recv a PDU response, reconnecting
Error while executing: npm ERR! /usr/bin/git ls-remote -h -t https://github.com/nhn/raphael.git npm ERR! npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': Failed connect to ...
在使用IntelliJ IDEA(简称Idea)进行Git操作时,有时可能会遇到“Сannot Run Git Cannot identify version of git executable: no response”的错误提示。这个错误意味着Idea无法找到或识别本地安装的Git版本,...
recv(sockClient, recvBuf, 100, 0); if(SOCKET_ERROR == WSAGetLastError()) MessageBox(NULL, "Server recieve data failed!", "Error", MB_OK); printf("%s\n", recvBuf); char sendBuf[] = "Hello Server...
yog2-plugin-recv-reload ======================== 通过yog2-plugin-recv-reload,可以实现在使用YOG2框架进行开发工作时,上传APP代码无需重启服务就可以调试最新代码 系统要求 yog2-kernel >= 0.2.2 Usage 安装...
Nginx的日志可能会显示"recv() failed (104: Connection reset by peer)",这意味着连接在接收数据时被重置。而PHP-FPM的错误日志(由`php-fpm.conf`中的`error_log`选项指定)则会记录警告,表明脚本执行超时,子...
FastDFS是一款开源的轻量级分布式文件系统 纯C实现,支持Linux、FreeBSD等UNIX系统 ...为互联网应用量身定做,解决大容量文件存储问题,追求高性能和高扩展性 FastDFS可以看做是基于文件的key value pair存储系统,称作...
### Python网络编程调用recv函数完整接收数据的三种方法 在网络编程中,特别是TCP通信中,确保能够完整地接收来自远程主机的数据是非常重要的。Python的`socket`库提供了`recv()`函数来接收数据,但在实际应用中...
1. Recv_Opt.Bak、Recv_Uv2.Bak:这些可能是编译过程中产生的备份文件,可能包含编译选项和编译器的配置信息。 2. main.c:这是C语言源代码文件,通常包含主程序逻辑,用于控制超声波测距模块的收发及数据处理。 3. ...
transport-layer segment: generated by the transport layer and encapsulates application-layer message with transport layer header; network-layer datagram: encapsulates transport-layer segment with a ...
torch 项目完整代码,公司无法使用git,所以放了个备份在csdn上 (git clone https://github.com/torch/distro.git ~/torch --recursive)
socket_recv 函数使用心得 在学习 socket_recv 函数时,需要了解其返回值的含义和使用场景。在阻塞模式下,当网络异常时,recv 函数返回值为-1,表示连接异常,需要关闭连接。在非阻塞模式下,如果没有数据,recv ...