You are not logged in.
Pages: 1
Hello,
i has a project in 2019.3; ECrtSocket ("SndLow() error is founded today when client get a static file ,the file is 1.8MB abount.
logs is showing:
20200410 14155759 + admin.TSsAdminServer(7f506ccdab10).URI GET root/static/keysData.rif in=0 B
20200410 14155760 - 00.012.987
20200410 14161760 EXC ECrtSocket ("SndLow() len=1485666 [11 WSATRY_AGAIN Try again]") [TssHTTPSvr 65500/remotedata3 root PoolSub] at 52ea99 52e9cf 534308 53389d 53862f 537ed0 53804d
so i update newest mormot source , but the errer as before.
the environment is buntu 16.04.6 LTS (GNU/Linux 4.4.0-166-generic x86_64)
Number of files received by the client is 16% abount,then error happend.
thanks for help.
Last edited by songshuang (2020-04-10 06:40:00)
Offline
Sending of a static files directly is not very good idea.
In case nginx is used as a reverse-proxy (as recommended for Linux production) consider using NginxSendFileFrom
If nginx not used - OnSendFile event can be implemented to use `sendfile` syscall
Problem you describe occurs in case client closes his socket. What client you use?
P.S.
Is I understand in your case static folder can be directly served by reverse proxy (so such requests enen do not reach the app server)
Last edited by mpv (2020-04-10 10:29:24)
Offline
the project is based on sample 30 mvc server. so the static file is published no any "user's" code.
get the static file by the url ,is http://ip/root/static/keysData.rif. i get the file use chrome browser, the progress getting the static file is: 0% go 16%, then turn to 0% repeatly, i think chrome try on get this. After this cycle was repeated a few times,chrome show error.
yes, sending of a static files use nginx is a good idea.
thank you
,
,
i found the problem also, when Ctxt.Returns('....[long size string,got by database record ]...'). client show the err: the content-lenth is more than received.
Other factors is that the network is poor! network bandwidth is 2M only. client is in china and server is in germany. ![]()
Last edited by songshuang (2020-04-11 01:17:53)
Offline
Wear a hat,its ok.
use nginx as a shield,It's working ![]()
Offline
Pages: 1