Navigation


Changeset 706:4ffbc9f1e922 in freeDiameter for libfdproto/log.c


Ignore:
Timestamp:
Feb 9, 2011, 3:26:58 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Large UNTESTED commit with the following changes:

  • Improved DiameterIdentity? handling (esp. interationalization issues), and improve efficiency of some string operations in peers, sessions, and dictionary modules (closes #7)
  • Cleanup in the session module to free only unreferenced sessions (#16)
  • Removed fd_cpu_flush_cache(), replaced by more robust alternatives.
  • Improved peer state machine algorithm to counter SCTP multistream race condition.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/log.c

    r687 r706  
    8383        /* First, check if a value is already assigned to the current thread */
    8484        val = pthread_getspecific(fd_log_thname);
     85        if (TRACE_BOOL(ANNOYING)) {
     86                if (val) {
     87                        fd_log_debug("(Thread '%s' renamed to '%s')\n", (char *)val, name);
     88                } else {
     89                        fd_log_debug("(Thread %p named '%s')\n", pthread_self(), name?:"(nil)");
     90                }
     91        }
    8592        if (val != NULL) {
    86                 TRACE_DEBUG(FULL, "Freeing old thread name: %s", val);
    8793                free(val);
    8894        }
Note: See TracChangeset for help on using the changeset viewer.