Node.js cuts off files when serving over HTTPS

后端 未结 5 1479
醉梦人生
醉梦人生 2021-01-03 00:12

I am trying to serve some JavaScript files with Node.js and for whatever reason the files are being cut off in the middle of the transmission. The code:

http         


        
5条回答
  •  遥遥无期
    2021-01-03 00:28

    I have just seen this too. Same setup - HTTPS, latest node from the git repo.

    One large file (170k) never properly completing sending. I tried to switch from async to synch but it made no difference. Only thing that fixed it so far was making the file smaller. It was a big floppy jpg so it was easy to do. Problem vanished.

提交回复
热议问题