Arrdio 单线程异步服务端, POST数据过大,会导致接收不到,哪位大佬知道怎么解决
By
niheibie
at 2023-11-28 • 0人收藏 • 393人看过
import win.ui; /*DSG{{*/ var winform = win.form(text="aardio form";right=611;bottom=769) winform.add( button={cls="button";text="Button";left=55;top=683;right=216;bottom=735;z=1}; button2={cls="button";text="Button";left=427;top=675;right=558;bottom=718;z=3}; plus={cls="plus";left=45;top=36;right=383;bottom=654;z=2} ) /*}}*/ import crypt.bin; import console; import web.socket.server; var wsrv = web.socket.server(); var srvHttp = wsrv.httpServer; srvHttp.clientBufferSize = 10000000000 srvHttp.run( function(response,request,session){ console.dumpTable(request) if(request.path=="/postbase64"){ console.log("request.postData()",request.postData()) response.write("收到了") return; } } ); srvHttp.start("0.0.0.0",8876); winform.show(); win.loopMessage(); return winform;
单线程异步代码..
如果是多线程HTTP服务端 就没有这种情况出现
登录后方可回帖