我想发送带有GET的长网址,我还需要在GET链接中添加该网址, 像这样(反应):
let urlParam = {
apply_user: this.state.apply_user,
order_id: this.state.order_id,
begin_date: this.state.begin_date,
end_date: this.state.end_date,
status: this.state.status,
execute_mode: this.state.execute_mode,
page: page,
pageSize: this.state.pageSize,
otype:'all',
}
history.pushState(null, null, '?'+concatURLParams(urlParam))
然后我可以从网址中获取所有消息,就像这样:
http://cmdb.server.com/page/machine/list/?page=1&ips=172.17.10.3%20172.17.10.4%20172.17.10.9%20172.17.10.10
但是实际上,参数很长,有很多IP需要发送。
然后我使用uwsgi运行django项目,我将buffer-size设置为65536。官方文档告诉我最大大小为64k,但这也得到了。
invalid uwsgi request (current strsize: 21600). skip.
[pid: 15947|app: -1|req: -1/7] () {0 vars in 31 bytes} [Mon Jan 14 11:18:52 2019] => generated 0 bytes in 0 msecs ( 500) 0 headers in 0 bytes (0 switches on core 0)
[uwsgi]
socket=127.0.0.1:9090
chdir=/home/ops/cmdb_futu/jumpserver
module=jumpserver.wsgi
master=true
buffer-size=65536
vacuum=true
processes=8
max-requests=2000
chmod-socket=664
vacuum=true
pidfile=uwsgi.pid
,我也将nginx large_client_header_buffers
和client_header_buffer_size
设置为64k。
但是我很长一段时间都没有做到。有人知道为什么并帮助我。