Navigation


Changeset 454:f1484823cb4a in freeDiameter for freeDiameter/sctps.c


Ignore:
Timestamp:
Jul 29, 2010, 4:11:12 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Small hack which might spear some concurrency problems and is quite harmless

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/sctps.c

    r403 r454  
    8787       
    8888        do {
     89                fd_cpu_flush_cache();
    8990                CHECK_FCT_DO( fd_sctp_recvmeta(conn->cc_socket, &strid, &buf, &bufsz, &event, &conn->cc_status), goto fatal );
    9091                switch (event) {
     
    171172        CHECK_PARAMS_DO( tr && data, { errno = EINVAL; return -1; } );
    172173       
     174        fd_cpu_flush_cache();
    173175        CHECK_FCT_DO( fd_sctp_sendstr(ctx->parent->cc_socket, ctx->strid, (uint8_t *)data, len, &ctx->parent->cc_status), /* errno is already set */ return -1 );
    174176       
     
    620622        /* End all TLS sessions, in series (not as efficient as paralel, but simpler) */
    621623        for (i = 1; i < conn->cc_sctp_para.pairs; i++) {
     624                fd_cpu_flush_cache();
    622625                if ( ! (conn->cc_status & CC_STATUS_ERROR)) {
    623626                        CHECK_GNUTLS_DO( gnutls_bye(conn->cc_sctps_data.array[i].session, GNUTLS_SHUT_WR), fd_cnx_markerror(conn) );
Note: See TracChangeset for help on using the changeset viewer.