×

Systems and methods for cancelling a query

  • US 10,191,984 B2
  • Filed: 10/23/2013
  • Issued: 01/29/2019
  • Est. Priority Date: 03/15/2013
  • Status: Active Grant
First Claim
Patent Images

1. A method for querying a database, comprising:

  • receiving, by a server computing device, a first query input from a client computing device over a network connection;

    establishing a first non-blocking socket for the first query between the client computing device and the server computing device wherein the first non-blocking socket automatically returns an error code when the client computing device fails to transmit data to the server computing device over the network connection;

    generating a first database query based on the first query input;

    causing the first database query to begin executing against one or more databases;

    receiving, by the server computing device, a second query input from the client computing device over the network connection and establishing a second non-blocking socket for the second query between the client computing device and the server computing device;

    responsive to receiving the second query, performing, by the server computing device, a read request on the first non-blocking socket wherein the read request is an automated request to determine if the network connection exists between the client computing device and the server computing device for the first non-blocking socket;

    receiving the error code in response to the read request on the first non-blocking socket;

    determining whether the network connection exists between the client device and the server device based on the received error code for the first non-blocking socket;

    executing a database instruction against the one or more databases, which causes the first database query to be cancelled when the server determines that the network connection does not exist between the client device and the server device for the first non-blocking socket; and

    responsive to cancelling the first database query, generating a second database query based on the second query input and causing the second database query to begin executing against one or more databases.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×