Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Internet explorer 在Node.js上使用SSL时,Internet Explorer会导致硬服务器崩溃_Internet Explorer_Ssl_Node.js_Express - Fatal编程技术网

Internet explorer 在Node.js上使用SSL时,Internet Explorer会导致硬服务器崩溃

Internet explorer 在Node.js上使用SSL时,Internet Explorer会导致硬服务器崩溃,internet-explorer,ssl,node.js,express,Internet Explorer,Ssl,Node.js,Express,我在Node.js(和Express.js)上设置了SSL,它似乎在除Internet Explorer 9之外的所有浏览器上都能正常工作。Internet Explorer偶尔(并非总是)会导致服务器崩溃,并显示以下消息: node.js:134 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: EPIPE, Broken pipe at Socket._writeIm

我在Node.js(和Express.js)上设置了SSL,它似乎在除Internet Explorer 9之外的所有浏览器上都能正常工作。Internet Explorer偶尔(并非总是)会导致服务器崩溃,并显示以下消息:

node.js:134
    throw e; // process.nextTick error, or 'error' event on first tick
    ^
Error: EPIPE, Broken pipe
    at Socket._writeImpl (net.js:159:14)
    at Socket._writeOut (net.js:450:25)
    at Socket.write (net.js:377:17)
    at EncryptedStream.ondata (stream.js:36:26)
    at EncryptedStream.emit (events.js:64:17)
    at EncryptedStream._push (tls.js:299:12)
    at SecurePair.cycle (tls.js:581:20)
    at CleartextStream.write (tls.js:96:13)
    at ServerResponse._writeRaw (http.js:391:28)
    at ServerResponse._send (http.js:371:15)
当我禁用SSL时,我还没有遇到这个问题,所以我假设问题就在于此

初始化代码为:

var app = express.createServer({
    key: fs.readFileSync('KeyFile.key').toString(),
    cert: fs.readFileSync('KeyFile.pem').toString()
});
...
app = app.listen(443);
我尝试过在代码中更改各种内容,从视图渲染到发送的标题,再到会话,我已经没有什么想法了

谢谢, Nathan

该问题在Node的问题跟踪程序中被归档为#1481,但似乎已经消失。至少揭示了关于它的部分讨论线索


但好消息是:在OSX/Snow Leopard上使用v0.4.8时,我也遇到了这个问题,但是(祈求好运)升级到0.4.12似乎使问题“消失”。这不是最让人放心的事情,但希望它能让你继续你的项目…

接下来,当部署到我们的登台环境中时,错误变为:error:ECONNRESET,peer重置连接其余的都是一样的。我想我可能不得不解决一个问题。不幸的是,我还没有找到解决办法。