Navigation


Changeset 767:c47c16436f71 in freeDiameter for include


Ignore:
Timestamp:
Oct 24, 2011, 6:43:32 AM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added a limit on fifo queues to avoid memory exaustion when messages are received faster than handled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r764 r767  
    27592759 * PARAMETERS:
    27602760 *  queue       : Upon success, a pointer to the new queue is saved here.
     2761 *  max         : max number of items in the queue. Above this number, adding a new item becomes a
     2762 *                blocking operation. Use 0 to disable this maximum.
    27612763 *
    27622764 * DESCRIPTION:
     
    27682770 *  ENOMEM      : Not enough memory to complete the creation. 
    27692771 */
    2770 int fd_fifo_new ( struct fifo ** queue );
     2772int fd_fifo_new ( struct fifo ** queue, int max );
    27712773
    27722774/*
Note: See TracChangeset for help on using the changeset viewer.