×

Detecting deadlocked file transfer protocol upload connections and performing session self-recovery using information stored in a FIFO resource array

  • US 9,009,710 B2
  • Filed: 05/25/2010
  • Issued: 04/14/2015
  • Est. Priority Date: 12/07/2009
  • Status: Active Grant
First Claim
Patent Images

1. A method for File Transfer Protocol (FTP) deadlock detection and self-recovery in a network element, comprising:

  • determining, by a daemon configured in the network element, whether a deadlock occurs in an FTP upload task by periodically transmitting a heartbeat detection message to an FTP upload task unit configured in the network element to perform the FTP upload task;

    upon determining that the deadlock occurs in the FTP upload task, recording socket resources used by the deadlocked FTP upload task in a socket resource cycle queue in the network element;

    starting a process of ending the deadlocked FTP upload task;

    assigning a new access location in the socket resource cycle queue; and

    initializing the deadlocked FTP upload task again using the new access location,wherein recording socket resources comprises of determining whether the socket resource cycle queue is full, upon determining that the socket resource cycle queue is not full, storing socket resources used by the deadlocked FTP upload task into the socket resource cycle queue, and upon determining that the socket resource cycle queue is full, releasing earliest socket resources from the socket resource cycle queue, and storing the socket resources used by the deadlocked FTP upload task into the socket resource cycle queue,wherein the socket resource cycle queue is implemented as a first-in-first-out (FIFO) array, and the socket resources used by the deadlocked FTP upload task are inserted into a head of the socket resource cycle queue, andwherein socket resources initially inserted in the head of the socket resource cycle queue are later released when cycling to a tail of the socket resource cycle queue, according to an FIFO principle.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×