cmatthew / Lind-misc

Misc files for the Lind project
3 stars 3 forks source link

nweb does not work #70

Open cmatthew opened 11 years ago

cmatthew commented 11 years ago

The nweb webserver has had a regression, and does not work.

Downloading a web pages from nweb with wget:

wget http://142.104.69.221:10001/1m.htm
--2013-03-18 20:05:09--  http://142.104.69.221:10001/1m.htm
Connecting to 142.104.69.221:10001... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1048576 (1.0M) [text/html]
Saving to: `1m.htm.4'

 1% [                             ] 14,480      --.-K/s   in 0.04s   

2013-03-18 20:05:10 (315 KB/s) - Connection closed at byte 14480. Retrying.

--2013-03-18 20:05:11--  (try: 2)  http://142.104.69.221:10001/1m.htm
Connecting to 142.104.69.221:10001... failed: Connection refused.

About 14k is sent then the connection dropped.

cmatthew commented 11 years ago

Oh, and this does not happen locally, just over the WAN. Perhaps a timing issue? @yyzhuang was able to manifest it.

yyzhuang commented 11 years ago

On server side nweb.nexe: nweb.c:121: web: Assertion `write(fd,buffer,ret) == ret' failed. NaCl process return with: -11 Terminated

The client is over WAN, and always got 14k data transferred, and then connection drop when retrying.