Mercurial > hg > freeDiameter
comparison freeDiameter/cnxctx.c @ 223:85dc47afeac7
Cleanup termination
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 23 Feb 2010 15:09:48 +0900 |
parents | 5f2ce627db3c |
children | 80a7e65167c4 |
comparison
equal
deleted
inserted
replaced
222:c8ad11effa95 | 223:85dc47afeac7 |
---|---|
507 void fd_cnx_markerror(struct cnxctx * conn) | 507 void fd_cnx_markerror(struct cnxctx * conn) |
508 { | 508 { |
509 TRACE_ENTRY("%p", conn); | 509 TRACE_ENTRY("%p", conn); |
510 CHECK_PARAMS_DO( conn, goto fatal ); | 510 CHECK_PARAMS_DO( conn, goto fatal ); |
511 | 511 |
512 TRACE_DEBUG(FULL, "Connection (%d) CC_STATUS_ERROR set", conn->cc_socket); | 512 TRACE_DEBUG(FULL, "CC_STATUS_ERROR set for socket %d (%s)", conn->cc_socket, conn->cc_id); |
513 | 513 |
514 /* Mark the error */ | 514 /* Mark the error */ |
515 conn->cc_status |= CC_STATUS_ERROR; | 515 conn->cc_status |= CC_STATUS_ERROR; |
516 | 516 |
517 /* Report the error if not reported yet, and not closing */ | 517 /* Report the error if not reported yet, and not closing */ |
518 if ((!(conn->cc_status & CC_STATUS_CLOSING )) && (!(conn->cc_status & CC_STATUS_SIGNALED ))) { | 518 if ((!(conn->cc_status & CC_STATUS_CLOSING )) && (!(conn->cc_status & CC_STATUS_SIGNALED ))) { |
519 TRACE_DEBUG(FULL, "Sending FDEVP_CNX_ERROR event"); | |
519 CHECK_FCT_DO( fd_event_send( Target_Queue(conn), FDEVP_CNX_ERROR, 0, NULL), goto fatal); | 520 CHECK_FCT_DO( fd_event_send( Target_Queue(conn), FDEVP_CNX_ERROR, 0, NULL), goto fatal); |
520 conn->cc_status |= CC_STATUS_SIGNALED; | 521 conn->cc_status |= CC_STATUS_SIGNALED; |
521 } | 522 } |
522 | 523 |
523 return; | 524 return; |