maomingchao

2017年5月7日

nodejs TLS 只加密,未授权,进一步完善

摘要: 密钥:摘自nodejs 官方文档 阅读全文

posted @ 2017-05-07 16:44 maomingchao 阅读(206) 评论(0) 推荐(0)

node.js 进程崩溃处理

摘要: process.on('uncaughtException', (err) => { console.error('有错误'); }); 阅读全文

posted @ 2017-05-07 10:42 maomingchao 阅读(169) 评论(0) 推荐(0)

在工程中要加入新的错误弹出方法

摘要: var em = new (require('events').EventEmitter)(); em.emit('error', new Error('you define the error!')); 阅读全文

posted @ 2017-05-07 10:15 maomingchao 阅读(139) 评论(0) 推荐(0)

nodejs buffer 内存泄漏问题

摘要: 摘自<Node.js 高级编程> var buffer = new Buffer("this is the content of my buffer"); var smallbuffer = buffer.slice(8,19); 这里会有个问题,就是由于子缓冲区在复制的时候,来自于父缓冲区,那么父 阅读全文

posted @ 2017-05-07 10:07 maomingchao 阅读(1446) 评论(0) 推荐(0)

导航