Method and apparatus for a client connection manager
View Patent ↗A method and apparatus for a connection manager have been disclosed. By providing for persistent connections with clients, the connection manager allows for servers to communicate with clients, which would otherwise be inaccessible.
1. A method comprising:
first, transitioning a client's connection from an active state to an inactive-idle state;
closing an application's socket when the client connection is transitioned to the inactive-idle state;
transitioning the client connection to an inactive table when the client connection is transitioned to the inactive-idle state;
freeing buffers associated with the transitioned client connection when the client connection is transitioned to the inactive-idle state;
killing any threads associated with the transitioned client connection when the client connection is transitioned to the inactive-idle state;
maintaining a persistent connection with the client when the client connection is transitioned to the inactive-idle state;
opening a socket to the client in response to a connection request from the application; and
mapping the connection request to the maintained persistent connection with the client in response to the connection request from the application; and
wherein any connection state data associated with said application's socket transitioning to an inactive state is moved to a non-transitory secondary storage.
2. The method of claim 1 , wherein mapping the connection request to the maintained persistent connection with the client further comprises transitioning the client to an active state.
3. The method of claim 1 further comprising:
receiving client data; and
simulating a connection request to an application.
4. The method of claim 1 wherein said non-transitory secondary storage is a disk storage.
5. The method of claim 4 wherein the connection state data is active connection data.
6. The method of claim 4 wherein the connection state data is inactive connection data.
7. The method of claim 4 wherein the connection state data is transition from active to inactive connection data.
8. The method of claim 4 wherein the connection state data is transition from inactive to active connection data.
9. The method of claim 1 wherein said non-transitory secondary storage is a database storage.
10. The method of claim 1 wherein said non-transitory secondary storage is a flash storage.
11. The method of claim 1 wherein said non-transitory secondary storage is a virtual memory storage.
12. The method of claim 1 wherein said non-transitory secondary storage is a holographic storage.
13. The method of claim 1 further comprising:
receiving at a connection manager a transmission control protocol data segment from the client, the transmission control protocol data segment destined for a server;
scanning an active connection table;
determining if there is an active connection from the client to the server;
checking if there is connection data when there is not the active connection from the client to the server; and
sending a response when there is not the connection data.
14. The method of claim 13 further comprising:
forwarding the transmission control protocol data segment to the server when there is the active connection.
15. The method of claim 13 further comprising:
scanning an inactive connection table when there is the connection data.
16. The method of claim 15 further comprising:
determining if the connection is in standby; and
activating the standby connection when the connection is in standby.
17. The method of claim 16 further comprising:
forwarding the transmission control protocol data segment to the server when the connection is in standby; and
resetting a timestamp when the connection is in standby.
18. The method of claim 15 further comprising:
determining if the connection is in standby; and
determining if the connection is idle when the connection is not in standby.
19. The method of claim 18 further comprising:
activating the idle connection when the connection is not in standby.
20. The method of claim 19 further comprising:
forwarding the transmission control protocol data segment to the server when the connection is not in standby; and
resetting a timestamp when the connection is not in standby.