Hey,

I'm running uwsgi 1.2-rc2 on Mac OS X 10.7.3 like this:
uwsgi --http 0.0.0.0:8000 --check-static $PWD --static-index index.html 
--workers 1 --threads 1

In other words: like a simple static HTTP daemon.

When I retrieve large(ish) files, they get truncated at seemingly random file 
positions:
$ curl -sS http://localhost:8000/resources/css/sencha-touch.css | wc -c
curl: (18) transfer closed with 23048 bytes remaining to read
  159536
$ curl -sS http://localhost:8000/resources/css/sencha-touch.css | wc -c
curl: (18) transfer closed with 100924 bytes remaining to read
   81660

The actual file size is 182584 bytes.

This is what uwsgi logs to stdout:
...
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 39727, cores: 1)
send(): Resource temporarily unavailable [plugins/http/http.c line 899]
[pid: 39727|app: -1|req: -1/1] 127.0.0.1 () {26 vars in 394 bytes} [Wed Apr 25 
13:23:51 2012] GET /resources/css/sencha-touch.css => generated 182584 bytes in 
0 msecs via sendfile() (HTTP/1.1 200) 2 headers in 89 bytes (0 switches on core 
0)
send(): Resource temporarily unavailable [plugins/http/http.c line 899]
sendfile(): Broken pipe [sendfile.c line 84]
[pid: 39727|app: -1|req: -1/2] 127.0.0.1 () {26 vars in 394 bytes} [Wed Apr 25 
13:23:52 2012] GET /resources/css/sencha-touch.css => generated 0 bytes in 0 
msecs via sendfile() (HTTP/1.1 200) 2 headers in 89 bytes (0 switches on core 0)
[pid: 39727|app: -1|req: -1/3] 127.0.0.1 () {26 vars in 394 bytes} [Wed Apr 25 
13:23:53 2012] GET /resources/css/sencha-touch.css => generated 182584 bytes in 
0 msecs via sendfile() (HTTP/1.1 200) 2 headers in 89 bytes (0 switches on core 
0)
send(): Resource temporarily unavailable [plugins/http/http.c line 899]
send(): Resource temporarily unavailable [plugins/http/http.c line 899]
[pid: 39727|app: -1|req: -1/4] 127.0.0.1 () {26 vars in 394 bytes} [Wed Apr 25 
13:23:54 2012] GET /resources/css/sencha-touch.css => generated 182584 bytes in 
0 msecs via sendfile() (HTTP/1.1 200) 2 headers in 89 bytes (0 switches on core 
0)

It seems to be related to Mac OS X, on Linux the same version works okay.

-- robert

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to