Unlock instant, AI-driven research and patent intelligence for your innovation.

Mail transmission method and device, electronic equipment and storage medium

A transmission method and mail technology, applied in the computer field, can solve the problems of slowing down multiple systems, waste of server thread resources, and inability to create connections, and achieve the effect of improving utilization and resource utilization.

Pending Publication Date: 2020-06-05
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the process of waiting for data transmission, the thread is in an idle state, that is, no computing tasks are performed, resulting in a great waste of server thread resources, and the above-mentioned one thread uses one connection processing method, which is very concurrency on the client side. When it is high, the server's threads will be exhausted, and new connections cannot be created, which will cause the client sending emails to be in a waiting state and slow down multiple systems

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Mail transmission method and device, electronic equipment and storage medium
  • Mail transmission method and device, electronic equipment and storage medium
  • Mail transmission method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0072] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. Embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0073] figure 1 It is a flow chart of an email transmission method shown according to an exemplary embodiment; the email transmission method can be applied to a server (such as an SMTP server, etc.). Such as figure 1 As shown, the mail transmission method includes the following steps S101-S104:

[0074] In step S101: based on the connection established with the current client, receive the ma...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a mail transmission method and device, electronic equipment and a storage medium. The method comprises the following steps: receiving mail data sent by a current client basedon a connection established with the current client, wherein the connection comprises a connection established with the current client in response to a mail transmission request sent by the current client; registering the connection to a set selector; based on a single thread, detecting whether the data of each connection on the selector is sent or not by adopting a polling mode; in response to the fact that the connected data is sent completely, performing mail transmission based on the sent data. According to the invention, the sending condition of the data of each connection on the selectoris monitored in a polling mode based on a single thread; compared with the mode that one connection uses one thread for processing in related technologies, the method can improve the utilization rateof the thread, solves the problem of service stability of a client in a high-density and high-concurrency scene, and can improve the resource utilization rate of a server.

Description

technical field [0001] The present disclosure relates to the field of computer technology, and in particular to a mail transmission method, device, electronic equipment and storage medium. Background technique [0002] In related technologies, the Java SMTP server is usually implemented using the BIO programming model of java. One connection is processed by one thread. When the client and the server generate IO, the thread is blocked, and the next step cannot be performed until the sending of the mail in the IO is completed. [0003] Since a connection is processed by one thread, when a connection occurs, the thread will always monitor whether the data to be transmitted by the connection has been sent. In the process of waiting for data transmission, the thread is in an idle state, that is, no computing tasks are performed, resulting in a great waste of server thread resources, and the above-mentioned one thread uses one connection processing method, which is very concurrenc...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L12/58H04L29/08
CPCH04L67/146H04L67/14H04L51/42
Inventor 卢鹏
Owner BEIJING XIAOMI MOBILE SOFTWARE CO LTD