Navigation


Changeset 1078:74bba7975864 in freeDiameter for libfdcore/cnxctx.c


Ignore:
Timestamp:
Apr 30, 2013, 4:37:57 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Cleanup the timing data and fd_msg_log feature that will be replaced by the new hooks mechanism. Kept the calls to fd_msg_log in comments to find the locations easily. WORK IN PROGRESS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/cnxctx.c

    r1029 r1078  
    644644        }
    645645       
    646         CHECK_SYS_DO( clock_gettime(CLOCK_REALTIME, &conn->cc_tls_para.recvon), /* continue */ );
    647        
    648646        return ret;
    649647}
     
    701699                ssize_t ret = 0;
    702700                size_t  received = 0;
    703                 struct timespec recv_on;
    704701
    705702                do {
     
    738735                        received += ret;
    739736                }
    740                
    741                 /* Piggy-tail the timestamp of reception */
    742                 CHECK_SYS_DO( clock_gettime(CLOCK_REALTIME, &recv_on), /* continue */ );
    743                 memcpy(newmsg + length, &recv_on, sizeof(struct timespec));
    744737               
    745738                /* We have received a complete message, pass it to the daemon */
     
    930923int fd_tls_rcvthr_core(struct cnxctx * conn, gnutls_session_t session)
    931924{
    932         struct timespec * rcv_on = &conn->cc_tls_para.recvon;
    933        
    934925#ifndef DISABLE_SCTP
    935926        void * ptr = gnutls_transport_get_ptr(session);
    936927        if (ptr != conn) {
    937928                struct sctps_ctx * ctx = (struct sctps_ctx *) ptr;
    938                 rcv_on = &ctx->recvon;
    939929        }
    940930#endif /* DISABLE_SCTP */
     
    984974                        received += ret;
    985975                }
    986                
    987                 /* The timestamp of the last TLS chunk received for this rebuilt message lives close to the session pointer, we piggyback it */
    988                 memcpy(newmsg + length, rcv_on, sizeof(struct timespec));
    989976               
    990977                /* We have received a complete message, pass it to the daemon */
Note: See TracChangeset for help on using the changeset viewer.