我正在使用node.js和video.js插件提供静态视频文件(.ogv和.mov).但是,node.js与以下错误消息一起崩溃: node: ../deps/uv/src/unix/stream.c:1319: uv_read_stop: Assertion `!uv__io_active(stream-io_watcher, 4) || !(stre
node: ../deps/uv/src/unix/stream.c:1319: uv_read_stop: Assertion `!uv__io_active(&stream->io_watcher, 4) || !(&stream->write_completed_queue == (&stream->write_completed_queue)->prev) || !(&stream->write_queue == (&stream->write_queue)->prev) || stream->shutdown_req != ((void *)0) || stream->connect_req != ((void *)0)' failed.
这是node.js代码:
app.configure (function () { app.set ('views', path.join (__dirname, 'templates')); app.set ('view engine', 'jade'); app.use (express.favicon (path.join (__dirname, '/img/favicon.ico'))); app.use ('/video', express.static (path.join (__dirname, 'public'))); app.use (express.static (path.join (__dirname, 'public'))); //bodyParser, methodOverride, cookieParser and session calls here app.use (app.router); });
我的node.js版本是“v0.10.4”
目录结构:
> / myApp
> / myApp / public
> / myApp / public / video
一个非常直接的静态文件服务.尝试在app.router之后放置express.static,并且在favicon之上,没有这样的运气.
欣赏任何建议渲染.
因此,为了完整起见:这是libuv中的 known bug,其中 has been solved自0.10.9起.自0.10.11以来, is resolved出现了类似的问题.