当前位置:首页 > 开发 > 开源软件 > 正文

recv() failed (104: Connection reset by peer) while reading response header from

发表于: 2013-07-21   作者:aigo   来源:转载   浏览次数:
摘要: 原文: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

原文: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

 

recv() failed (104: Connection reset by peer) while reading response header from

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

编辑推荐
问题记录,最近遇到Connection reset by peer 这个错误,错误日志记录如下: 13-09-11 11:57:04 [ER
最近在整合和上传下载相关的工具类,做了个小demo,如图 点击 download链接,程序自动下载使用outpu
今天有台数据库异常,登录服务器后执行show processlist,发现大量的 unauthenticated user 状态。
今天的工作中,需要远程访问服务器上的数据库。但是,连接错误,Error code is 1326.说句实话,关于
在使用HttpClient调用后台resetful服务时,“Connection reset”是一个比较常见的问题,有同学跟我
在mac上更新android studio时,总是弹出上面alert,解决方法是在进入到Android Studio.app/Content/
  今天在linux机器上想要远程重启一台window的机器,输入命令后报错,如下 Google了下,有说是win
本文将介绍如何从Obj文件格式中创建3D对象,我们使用的是Nate Miller的obj格式加载类。 This would
Error Message unexpected end of file while looking for precompiled header. Did you forget to
从微软官网下载jdbc驱动包sqljdbc4,运行sqljdbc_4.0.2206.100_chs.exe,将驱动包解压到了Microsoft
版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号