CN110489244A - Information processing method, system, device and computer readable storage medium - Google Patents

Information processing method, system, device and computer readable storage medium Download PDF

Info

Publication number
CN110489244A
CN110489244A CN201910355102.8A CN201910355102A CN110489244A CN 110489244 A CN110489244 A CN 110489244A CN 201910355102 A CN201910355102 A CN 201910355102A CN 110489244 A CN110489244 A CN 110489244A
Authority
CN
China
Prior art keywords
information
session information
communication connection
processing method
information processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910355102.8A
Other languages
Chinese (zh)
Other versions
CN110489244B (en
Inventor
翁慈洁
汪国彬
曹福祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910355102.8A priority Critical patent/CN110489244B/en
Publication of CN110489244A publication Critical patent/CN110489244A/en
Application granted granted Critical
Publication of CN110489244B publication Critical patent/CN110489244B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application is about a kind of information processing method, system, device and computer readable storage medium.The message treatment method includes: to establish communication connection;Session information is established according to the communication connection;And by session information storage into a persistent storage unit.In embodiments of the present invention, since session information is saved in persistent storage unit, it will not be lost with exiting for current service, and then after servicing restarting, the session information in persistent storage unit can be read, to restore first Dialog processing, reduced with this since the influence to client is exited in service.

Description

Information processing method, system, device and computer readable storage medium
Technical field
The application belongs to Internet technical field, especially a kind of information processing method, system, device and computer-readable Storage medium.
Background technique
It is increasingly developed with mobile Internet, produce a variety of APP for meeting various demands.These APP are generally comprised Client and server-side, client and service end administration on different devices, and are interacted based on communication protocol.These communications Agreement includes the Transmission Control Protocol of long connection and the http protocol of short connection.For the APP for using Transmission Control Protocol, need to the greatest extent may be used Energy ground guarantees the validity of communication connection, to avoid the communication disruption between client and server-side.
However, server-side needs to update regularly online with the fast development and iteration of business.It updates every time online Process, communication connection can all interrupt, and cause user that start-up by hand client and server-side is needed to carry out reconnection.Current APP's Any active ues are more, and affected number of users is more, may sometimes be related to millions of to tens million of use Family.If things go on like this, the satisfaction that may cause user reduces, and then user is caused to exit even unloading APP.
Summary of the invention
To solve the above-mentioned problems, the application discloses a kind of information processing method, system, device and computer-readable storage Medium.
In a first aspect, the embodiment of the invention provides a kind of information processing methods, comprising:
Establish communication connection;
Session information is established according to the communication connection;And
By session information storage into a persistent storage unit.
In some embodiments, the step of foundation communication connection being executed using the first process;It is held using the second process Row described the step of establishing session information according to the communication connection and described store the session information to a persistence are deposited Step in storage unit, wherein first process and second process are received and sent messages based on interprocess communication.
In some embodiments, further includes: after second process is restarted, read from the persistent storage unit The session information restores first Dialog processing according to the session information.
In some embodiments, further includes:
The communication connection is based on using the first process and receives service request;And
Business processing is carried out according to the service request using the second process.
In some embodiments, the communication connection is the communication connection established based on Transmission Control Protocol.
In some embodiments, the session information and the link information include: client identification, server-side mark Knowledge, connection identifier, encryption key and heartbeat message.
In some embodiments, the persistent storage unit is one of shared drive, message queue, database.
Second aspect, the embodiment of the present invention provide a kind of information processing system, comprising:
Link block, for establishing communication connection;
Conversation module for establishing session information according to the communication connection, and the session information is stored to one and is held In longization storage unit.
The link block is executed using the first process in some embodiments;The session mould is executed using the second process Block, wherein first process and second process are received and sent messages based on interprocess communication.
In some embodiments, after second process is restarted, the session is read from the persistent storage unit Information restores first Dialog processing according to the session information.
In some embodiments, further includes: the communication connection is based on using the first process and receives service request;And it adopts Business processing is carried out according to the service request with the second process.
In some embodiments, the communication connection is the communication connection established based on Transmission Control Protocol.
In some embodiments, the persistent storage unit is one of shared drive, message queue, database.
The third aspect provides a kind of device, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to executing information processing method described in above-mentioned any one.
Fourth aspect, provides a kind of computer readable storage medium, and the computer-readable recording medium storage has calculating Machine instruction, the computer instruction, which is performed, realizes information processing method described in any of the above embodiments.
5th aspect, the embodiment of the present invention provide computer program product, including computer program, the computer program The information processing method of above-mentioned any one is executed when described program instruction is executed by processor including program instruction.
The technical solution that embodiments herein provides can include the following benefits: will meeting corresponding with communication connection Information preservation is talked about into persistent storage unit, so that the session information will not be lost, Jin Erke even if current service exits To restore first Dialog processing using the session information, exit so as to reduce current service for the unfavorable of business processing It influences.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The application can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application Example, and together with specification it is used to explain the principle of the application.
Fig. 1 show the structural schematic diagram of a communication system;
Fig. 2 show the flow chart for the information processing method that an exemplary embodiment of the invention provides;
Fig. 3 show the flow chart for the information processing system that an exemplary embodiment of the invention provides;
Fig. 4 show the interaction signal of the information processing system that an exemplary embodiment of the invention provides and client Figure;
Fig. 5 show a kind of structural block diagram for device that an exemplary embodiment of the invention provides;
Fig. 6 show the structural block diagram for another device that an exemplary embodiment of the invention provides.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
Fig. 1 show the structural schematic diagram of a communication system.The communication system includes multiple client 101 and a service End 102, client 101 can be deployed in including the suchlike end such as mobile phone, IPAD, desktop computer, notebook, intelligent TV set On end, server-side 102 can be deployed on the server such as PC server, cluster server, blade server.Client 101 and server-side 102 based between terminal and server physical network and virtual network communicated.For convenience's sake, Two clients and a server-side are merely illustrated in Fig. 1.However as described in the background art, some time point, it is up to a million or The user of person's millions can be connected to server-side by client, if server-side exits suddenly, to user's shadow of client Sound is very big.
For this purpose, the embodiment of the present invention proposes a kind of information processing method, it is applied to server-side 102, to reduce when service When end is exited, the influence to the user of client.
Refering to what is shown in Fig. 2, the information processing method includes the following steps.
In step s 201, communication connection is established.
The specific steps of foundation communication connection in the present embodiment are related to the communication protocol of use.For communication protocol, Long connection protocol and short connection protocol can be generally divided into.For long connection protocol, after client and server-side successful connection It can be always maintained at connection status, until network interruption or wherein a side exits.And short connection protocol is then different.Below with length Detailed description establishes the step of communication connection for the Transmission Control Protocol of connection.Specifically, it is in after server-side starting and listens to state, Connection request can be sent to server-side after client terminal start-up, after server-side receives the connection request of client, starting is new Thread or process be attached confirmation, and current process continues to listen to other clients.Server-side and client it is logical After letter connection is established, it can be received and sent messages based on the communication connection.
In step S202, session information is established according to the communication connection.
In this step, session information refers to and communicates to connect relevant information.For example, when multiple client and server-side connect When connecing, need to identify client belonging to each communication connection, therefore, session information should include client identification, server-side mark Know and connection identifier should also be including key information, if based on should in session information if the communication connection is encryption connection Communication connection sends heartbeat message, then session information includes heartbeat message.
In step S203, it will words information storage is into persistent storage unit.
Persistent storage unit is the storage resource for capableing of persistent storage session information, is stored in the storage resource Information will not lose because of exiting for current service.
In embodiment, session information corresponding with the communication connection is saved in persistent storage unit, thus So that the session information will not be lost even if current service exits, and then first meeting can be restored using the session information Words processing, so that reducing current service exits adverse effect for business processing.
In an alternate embodiment of the invention, using the first process execution step S201, executed using the second process and S202 and S203, wherein the first process and the second process are received and sent messages based on interprocess communication.In the present embodiment, server-side first Function is divided into linkage function and interactive function, and linkage function is used for and client establishes communication connection, and is based on communication link Photos and sending messages are received, interactive function carries out business processing according to the information received, and then linkage function is arranged in the first process It is executed in (i.e. connection service), it will words function, which is placed in the second process (i.e. conversational services), to be executed.Interactive function is due to being related to To business processing, can be changed with the variation of service logic frequently, and linkage function is not due to including service logic so becoming It is dynamic seldom, therefore linkage function and interactive function are placed in two different processes, it can be ensured that when interactive function carries out version When this update, it is only necessary to which the second process exits, and the first process also keeps normal operating conditions, i.e. linkage function can also be normal Work.Wherein, the function of creation and persistent storage session information both can be set executes in the first process, also can be set It is executed in second process, if by the first process creation and storing session information, session information needs to pass to the second process, To carry out corresponding business processing, if by the second process creation and storing session information, the first process can will and communication link It connects relevant link information and is sent to the second process, for creating session information.
In addition, when the second process exits, since session information is still stored in persistent storage unit, In In an optional embodiment, when the restarting of the second process, session information is read from persistent storage unit, to restore First Dialog processing.As an optional example, the second process can execute an initialization function in each starting Can, which is used to read session information from persistent storage unit, has formerly been connected according to session information recovery Client Dialog processing.
In the above-described embodiments, no matter by the first process or by the second process creation session information, session information is all needed Persistent storage is carried out, so as to guarantee that, when current process exits, session information will not be lost, and then can be according to meeting Talk about the first Dialog processing of Information recovering.For example, in some cases, server-side includes multiple second processes, when one of them When second process exits, its corresponding Dialog processing is restored according to the session information of its storage by another second process.As The data structure definition of example, session information is as follows:
In addition, the data structure definition communicated between the first process and the second process is as follows.
According to above-mentioned data structure, after first time communication connection of first process between client is established, fill in User_info, socket_id, copy service message to second process that is sent in biz_message, the second process according to The new Session data structure of the information creating received one, socket_id, the encryt_key temporarily generated is saved Heartbeat message is received in persistent storage unit, and in subsequent basis, is continuously updated last_active_time.When When second process sends message, relevant Session structure is found, SessionProto packet is constructed, issues the second process, First process receives SessionProto packet, the communication connection of relevant TCP is found by socket_id, biz_message It is sent to client.
Fig. 3 show the flow chart for the information processing system that an exemplary embodiment of the invention provides.With reference to Fig. 3 institute Show, information processing system 300 includes link block 301 and conversation module 302.
Link block 30 is used to execute following functions: receiving the connection request that client is sent, is based on connection request and visitor Communication connection is established at family end 101, receives the service request and link information that client 101 is sent by the communication connection, and will Service request and link information are transmitted to conversation module 302, receive the processing result that conversation module 302 is fed back and are sent to client End 101.Conversation module 302 is for executing following functions: receiving service request and link information, establishes session according to link information Information, it will words information storage calls service interface 303 and 304 into persistent storage unit 305, according to service request, and Processing result is fed back into connection service 301.
Session information corresponding with communication connection is saved in persistent storage by information processing system provided in this embodiment In unit, so that the session information will not be lost even if current service exits, and then it can be restored using the session information First Dialog processing exits adverse effect for business processing so as to reduce current service.
Fig. 4 show the interaction signal of the information processing system that an exemplary embodiment of the invention provides and client Figure.It has been related to client 40, the first process 41, the second process 42 and persistent storage unit 43 in the interaction schematic diagram.
In step S401, the second process 42 creates shared drive.
Wherein, shared drive is a kind of method that message transmission is carried out between Unix/Linux multi-process.In the present invention, Shared drive is not deleted to store session information, also, after the second process exits by the second process creation shared drive, So that the session information in persistent storage unit is persistently stored.It is of course also possible to which other kinds of persistence is deposited Storage unit, such as message queue and database, but the efficiency that data are read and write from shared drive is higher than message team Column and database, therefore preferably use shared drive.
In step S402, the second process 41 and client 40 establish communication connection.
For example communication connection can be established based on Transmission Control Protocol between second process 42 and client 40.Specifically, server-side Connection request can be sent to server-side after state of listening to, client terminal start-up after starting, when server-side receives client After connection request, starts new thread or process and be attached confirmation, and current process continues to listen to other clients. After the communication connection of server-side and client is established, client then can send business letter to server-side based on the communication connection Breath.
In step S403, the second process 42 and the first process 41 establish interprocess communication.
The ways and means of information are transmitted in interprocess communication between different processes.Existing interprocess communication includes pipeline (PIPE), message queueing, semaphore, common memory and socket (Socket).Interprocess communication is a kind of prior art, here Just repeat no more.
In step s 404, the first process 41 sends link information to the second process 42.
After the first process 41 and client 40 are successfully established communication connection, segment connection information can be obtained, such as when adopting After establishing communication connection with Transmission Control Protocol, then available client-side information and socket mark, this partial information are stored Into link information.In addition, client is subsequent also to be sent some and connect relevant information, such as the heartbeat letter periodically sent Breath, encryption key etc., the first process 41 can also store these information into link information after receiving these information.On The second process 42 can be sent to by interprocess communication by the first process 41 by stating link information.
In step S405, the second process 42 establishes session information according to link information.
After second process 42 receives link information, link information is handled, and establish session information accordingly.It is right The processing step of link information depends on the particular content of link information.For example, if containing Transmission Control Protocol in link information Structural body, then the second process 42 needs to carry out protocol analysis to structural body, required session information is obtained, if wrapped in structural body Containing check information, then the information received is verified.In addition, the second process 42 needs if link information is encrypted Encryption data is decrypted, to obtain required session information.Etc..
In step S406, the second process 42 stores session information into shared drive.
After the second process 42 gets session information, it can be stored in shared drive, and processing hereafter In be maintained.For example, referring to above, client can send heartbeat message to the first process, when the first process will When heartbeat message is transmitted to the second process, when the second process needs to modify the reception of the last time heartbeat in session information accordingly Between.
In step S 407, client 40 sends business information to the first process 41.
In step S408, the first process 41 sends business information to the second process 42.
In step S407-S408, by the communication connection formerly established, client 40 send business information to first into Business information is transmitted to the second process 42 by interprocess communication by journey 41, the first process 41.
In step S409,42 processing business information of the second process.
In step S410, the second process 42 sends processing result to the first process 41.
In step S411, the first process 41 sends processing result to client 40.
In step S409-S411, the second process 42 handles business information, by processing result by leading between process Letter is sent to the first process 41, and the first process 41 is then forwarded to client.
It should be understood that in the present embodiment, it, artificially will letter in order to distinguish the information transmitted in connection procedure and business procedure Breath is divided into link information and business information, this is because after client and the first process establish communication connection for the first time, just Required link information is substantially obtained, so as to establish session information by link information, and subsequent client and The information of one process transmission is mostly related to business, therefore is stated that business information.
The information processing system provided according to embodiments of the present invention is handled by the first process and is communicated to connect, passes through second Process processing business process, so that the first process is unaffected when the second process updates, and the second process is by session information It stores in shared drive, it is ensured that, can be with after session information will not be lost, and then the second process is restarted after the second process exits Restore present Dialog processing.
It is noted that the embodiment of the invention provides a kind of information processing method and system with versatility.The information Processing method and system have plurality of application scenes, such as video APP, instant messaging APP, payment APP etc., can use Information processing method provided by the invention and system.
Referring to Fig. 5, device 500 may include following one or more components: processing component 502, memory 504, electric power Component 506, multimedia component 508, audio component 510, the interface 512 of input/output (I/O), sensor module 514, and Communication component 516.
The integrated operation of the usual control device 500 of processing component 502, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 502 may include that one or more processors 520 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 502 may include one or more modules, just Interaction between processing component 502 and other assemblies.For example, processing component 502 may include multi-media module, it is more to facilitate Interaction between media component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in equipment 500.These data are shown Example includes the instruction of any application or method for operating on device 500, contact data, and telephone book data disappears Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 may include power management system System, one or more power supplys and other with for device 500 generate, manage, and distribute the associated component of electric power.
Multimedia component 508 includes the screen of one output interface of offer between device 500 and user.In some realities It applies in example, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with Sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, and And also detect duration and pressure relevant to touch or slide.In some embodiments, multimedia component 508 includes One front camera and/or rear camera.It is such as in a shooting mode or a video mode, preceding when equipment 500 is in operation mode It sets camera and/or rear camera can receive external multi-medium data.Each front camera and rear camera can Be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a Mike Wind (MIC), when device 500 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 504 or via communication set Part 516 is sent.In some embodiments, audio component 510 further includes a loudspeaker, is used for output audio signal.
I/O interface 512 provides interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, enables button and lock at volume button Determine button.
Sensor module 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented Estimate.For example, sensor module 514 can detecte the state that opens/closes of equipment 500, the relative positioning of component, such as component For the display and keypad of device 500, sensor module 514 can be with the position of 500 1 components of detection device 500 or device Set change, the existence or non-existence that user contacts with device 500, the temperature in 500 orientation of device or acceleration/deceleration and device 500 Variation.Sensor module 514 may include proximity sensor, be configured to detect without any physical contact near The presence of object.Sensor module 514 can also include optical sensor, such as CMOS or ccd image sensor, for answering in imaging With middle use.In some embodiments, which can also include acceleration transducer, gyro sensor, magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, such as WiFi, carrier network (such as 2G, 3G, 4G or 5G) or them Combination.In one exemplary embodiment, communication component 516 is received via broadcast channel from the wide of external broadcasting management system Broadcast signal or broadcast related information.In one exemplary embodiment, communication component 516 further includes near-field communication (NFC) module, To promote short range communication.For example, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 500 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 504 of instruction, above-metioned instruction can be executed by the processor 520 of device 500 to complete the above method.For example, Non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and light Data storage device etc..
Fig. 6 is a kind of block diagram of the device of execution information processing method shown according to an exemplary embodiment.For example, dress Setting 600 may be provided as a server.Referring to Fig. 6, device 600 includes processing component 622, further comprises one or more A processor, and the memory resource as representated by memory 632, can be by the finger of the execution of processing component 622 for storing It enables, such as application program.The application program stored in memory 632 may include it is one or more each correspond to The module of one group of instruction.In addition, processing component 622 is configured as executing instruction, to execute above- mentioned information processing method.
Device 600 can also include the power management that a power supply module 626 is configured as executive device 600, and one has Line or radio network interface 650 are configured as device 600 being connected to network and input and output (I/O) interface 658.Dress Setting 600 can operate based on the operating system for being stored in memory 632, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the exemplary embodiment, computer program product, including computer program are additionally provided, computer program includes Program instruction makes device execute above- mentioned information processing method when program instruction is executed by device.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the application Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or Person's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the application Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by following Claim is pointed out.
It should be understood that the application is not limited to the precise structure that has been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.Scope of the present application is only limited by the accompanying claims.

Claims (10)

1. a kind of information processing method characterized by comprising
Establish communication connection;
Session information is established according to the communication connection;And
By session information storage into a persistent storage unit.
2. information processing method according to claim 1, which is characterized in that execute the foundation communication using the first process The step of connection;Using the second process execute described the step of session information is established according to the communication connection and it is described will be described Session information storage is to the step in a persistent storage unit, wherein first process and second process be based on into Transceiver communication information between journey.
3. information processing method according to claim 2, which is characterized in that further include: after second process is restarted, The session information is read from the persistent storage unit, first Dialog processing is restored according to the session information.
4. according to right want 2 described in information processing method, which is characterized in that further include:
The communication connection is based on using the first process and receives service request;And
Business processing is carried out according to the service request using the second process.
5. information processing method according to any one of claims 1 to 4, which is characterized in that it is described communication connection for based on The communication connection that Transmission Control Protocol is established.
6. information processing method according to any one of claims 1 to 4, which is characterized in that the session information includes: visitor Family end mark, server-side mark, connection identifier, encryption key and heartbeat message.
7. information processing method according to any one of claims 1 to 6, which is characterized in that the persistent storage unit For one of shared drive, message queue, database.
8. a kind of information processing system characterized by comprising
Link block, for establishing communication connection;
Conversation module for establishing session information according to the communication connection, and the session information is stored to a persistence In storage unit.
9. a kind of device characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to executing information processing method described in 1 to 7 any one of the claims.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer to refer to It enables, the computer instruction, which is performed, realizes information processing method as described in any one of claim 1 to 7.
CN201910355102.8A 2019-04-29 2019-04-29 Information processing method, system, apparatus and computer readable storage medium Active CN110489244B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910355102.8A CN110489244B (en) 2019-04-29 2019-04-29 Information processing method, system, apparatus and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910355102.8A CN110489244B (en) 2019-04-29 2019-04-29 Information processing method, system, apparatus and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110489244A true CN110489244A (en) 2019-11-22
CN110489244B CN110489244B (en) 2022-08-12

Family

ID=68546133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910355102.8A Active CN110489244B (en) 2019-04-29 2019-04-29 Information processing method, system, apparatus and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110489244B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114039773A (en) * 2021-11-08 2022-02-11 北京天融信网络安全技术有限公司 Connection establishing method, device, equipment and computer readable storage medium
CN114364056A (en) * 2021-12-28 2022-04-15 天翼物联科技有限公司 Method, system, device and storage medium for controlling terminal LWM2M session

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270427A (en) * 2014-09-18 2015-01-07 用友优普信息技术有限公司 Session control method and device
CN105407180A (en) * 2015-12-29 2016-03-16 曙光信息产业(北京)有限公司 Server message pushing method and device
CN109246172A (en) * 2017-07-11 2019-01-18 华为技术有限公司 A kind of method, apparatus and computer storage medium for restoring session

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270427A (en) * 2014-09-18 2015-01-07 用友优普信息技术有限公司 Session control method and device
CN105407180A (en) * 2015-12-29 2016-03-16 曙光信息产业(北京)有限公司 Server message pushing method and device
CN109246172A (en) * 2017-07-11 2019-01-18 华为技术有限公司 A kind of method, apparatus and computer storage medium for restoring session

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
未注明: "不可不知的socket和TCP通信连接", 《微信公众号"架构之家"》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114039773A (en) * 2021-11-08 2022-02-11 北京天融信网络安全技术有限公司 Connection establishing method, device, equipment and computer readable storage medium
CN114039773B (en) * 2021-11-08 2024-02-02 北京天融信网络安全技术有限公司 Connection establishment method, device, equipment and computer readable storage medium
CN114364056A (en) * 2021-12-28 2022-04-15 天翼物联科技有限公司 Method, system, device and storage medium for controlling terminal LWM2M session
CN114364056B (en) * 2021-12-28 2023-08-29 天翼物联科技有限公司 Control method, system, device and storage medium for LWM2M session of terminal

Also Published As

Publication number Publication date
CN110489244B (en) 2022-08-12

Similar Documents

Publication Publication Date Title
CN106488335B (en) Live-broadcast control method and device
US20220256008A1 (en) Method and Apparatus for Selecting Information Pushed-To Terminal
CN107888965B (en) Image gift display method and device, terminal, system and storage medium
EP4262214A1 (en) Screen projection method and apparatus, and electronic device and storage medium
CN112947823A (en) Session processing method, device, equipment and storage medium
CN109194972B (en) Live stream acquisition method and device, computer equipment and storage medium
EP3223147A2 (en) Method for accessing virtual desktop and mobile terminal
CN110839073A (en) Method for acquiring push information, method and device for sending push information
CN106231093A (en) Alarm clock prompting method and device
CN109302341B (en) Instant messaging method, instant messaging device, electronic equipment and storage medium
CN110149491B (en) Video encoding method, video decoding method, terminal and storage medium
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN111385349B (en) Communication processing method, communication processing device, terminal, server and storage medium
CN110489244A (en) Information processing method, system, device and computer readable storage medium
CN113516991A (en) Audio playing and equipment management method and device based on group session
CN112131135B (en) Ciphertext operation debugging method and system and device for ciphertext operation debugging
US9172986B2 (en) Network system, communication method, and communication terminal
US20220414178A1 (en) Methods, apparatuses and systems for displaying alarm file
WO2019227318A1 (en) Physical downlink control channel monitoring configuration method and apparatus, physical downlink control channel monitoring method and apparatus, and base station
CN112925788A (en) Data set management method, system, device, electronic equipment and storage medium
US20140297719A1 (en) Receiving a communication event
CN105282628B (en) A kind of method and apparatus of video playing
WO2020014900A1 (en) Message display method and terminal
CN111290843A (en) Process management method and device
CN112017640B (en) Wake-up decision method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant