当前位置:网站首页>mysql econnreset_ Nodejs socket error handling error: read econnreset
mysql econnreset_ Nodejs socket error handling error: read econnreset
2022-07-05 13:07:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
error message :
Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:162:27)
The above situation usually occurs when the client is shut down socket Error caused by connection , This error will cause the program to exit abnormally
terms of settlement :
var pReq = http.request(options, function (pRes) {
cSock.writeHead(pRes.statusCode, pRes.headers);
pRes.pipe(cSock);
}).on(‘connect’, (res, socket, head) => {
const { httpVersion, statusCode, statusMessage } = res;
cSock.write(`HTTP/{httpVersion} {statusCode}
cSock.pipe(socket);
socket.pipe(cSock);
socket.on(‘error’,(e)=>{
console.log(‘====>’,e.stack)
socket.destroy()
})
cSock.on(‘error’,(e)=>{
console.log(‘====>’,e.stack)
})
cSock.on(‘close’,()=>{
console.log(‘close===========’)
cSock.destroy()
})
}).on(‘error’, function (e) {
console.error(` Request encountered problem : ${e.message}`);
});
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/149592.html Link to the original text :https://javaforall.cn
边栏推荐
- Introduction to sap ui5 flexiblecolumnlayout control
- Lb10s-asemi rectifier bridge lb10s
- Put functions in modules
- Alibaba cloud SLB load balancing product basic concept and purchase process
- 《2022年中國銀行業RPA供應商實力矩陣分析》研究報告正式啟動
- 前缀、中缀、后缀表达式「建议收藏」
- [cloud native] event publishing and subscription in Nacos -- observer mode
- RHCSA4
- stirring! 2022 open atom global open source summit registration is hot!
- Yyds dry goods inventory # solve the real problem of famous enterprises: move the round table
猜你喜欢
Laravel document reading notes -mews/captcha use (verification code function)
Introduction aux contrôles de la page dynamique SAP ui5
A deep long article on the simplification and acceleration of join operation
Pandora IOT development board learning (HAL Library) - Experiment 7 window watchdog experiment (learning notes)
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xe6 in position 76131: invalid continuation byt
uni-app开发语音识别app,讲究的就是简单快速。
Alibaba cloud SLB load balancing product basic concept and purchase process
Developers, is cloud native database the future?
How can non-technical departments participate in Devops?
Le rapport de recherche sur l'analyse matricielle de la Force des fournisseurs de RPA dans le secteur bancaire chinois en 2022 a été officiellement lancé.
随机推荐
Changing JS code has no effect
CF:A. The Third Three Number Problem【关于我是位运算垃圾这个事情】
Reverse Polish notation
SAP UI5 视图里的 OverflowToolbar 控件
RHCSA1
It's too convenient. You can complete the code release and approval by nailing it!
《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
Yyds dry goods inventory # solve the real problem of famous enterprises: move the round table
Default parameters of function & multiple methods of function parameters
RHCSA2
How to protect user privacy without password authentication?
解决 UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xa2 in position 107
Cf:a. the third three number problem
Pandora IOT development board learning (HAL Library) - Experiment 7 window watchdog experiment (learning notes)
SAP SEGW 事物码里的 ABAP Editor
Developers, is cloud native database the future?
Leetcode20. Valid parentheses
LB10S-ASEMI整流桥LB10S
Write macro with word
##无监控,不运维,以下是监控里常用的脚本监控