Python prompts [Errno 32] How to Solve the thread crash error caused by Broken pipe, errnocrash
This example describes how to solve the thread crash error caused by the Python prompt [Errno 32] Broken pipe. Share it with you for your reference. The
The example in this article tells the python hint [Errno 32]broken pipe causes a thread crash error resolution. Share to everyone for your reference. The specific methods are as follows:
1. Error phenomenathe HTTP service implemented by
Fwrite (): Send of bytes failed with errno=32 broken pipeFwrite (): Send of bytes failed with errno=104 Connection reset by peerUsing RABBITMQ to do the error on the message queue times, when the consumption queue starts, the unacked instantly
Errno is in defined in, the macro of the error Exx is defined in the errno-base.h and errno under the/usr/include/asm-generic folder. h. Definitions of errors 1-34 and 35-132 are defined respectively.
The strerror () function returns the error
/usr/include/asm-generic/errno-base.h
/usr/include/asm-generic/errno.h
You can obtain an error description using the following procedure:
Strerror (errno): Get errno corresponding error
/**************************** Get error code description ****
Errno. H --
Query
Checking the error code errno is an important way to debug the program. When the linuc c api function is abnormal, The errno variable (including
Errno. h) assign an integer. Different values indicate different meanings. You can
strerror (int error): For printing error
errno.00 is:success errno.01 is:operation not permittederrno.02 is:no such file or directoryerrno.03 Is:no Such processerrno.04 is:interrupted System callerrno.05 is:input/output Errorerrno.06 Is:no such
The errno definition in Linux. In the header file # include
124 emediumtype wrong medium type
123 enomedium no medium found
122 edquot Disk Quota exceeded
121 eremoteio remote I/O Error
120 eisnam is a named type file
119 enavail no XENIX
Pipelines and famous Pipelines
In this series, the author outlines several main methods for inter-process communication in Linux. Among them, pipelines and named pipelines are one of the earliest inter-process communication mechanisms. pipelines
The server shut down the client socket_fd that is being connected, and the response process made by the client
When the server closes a connection, if the client sends data. According to the TCP protocol, an rst response is received. When the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.