Browse Source

use dg.dump_hex instead of describe_message to avoid segmentation fault

Redmond Urbino 15 years ago
parent
commit
93a6c90dd9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      direct/src/distributed/cConnectionRepository.cxx

+ 3 - 3
direct/src/distributed/cConnectionRepository.cxx

@@ -1130,7 +1130,7 @@ bool CConnectionRepository::check_datagram_ai(PyObject *PycallBackFunction)
                 endTime = ClockObject::get_global_clock()->get_real_time(); 
                 endTime = ClockObject::get_global_clock()->get_real_time(); 
                 if ( _time_warning < (endTime - startTime)) {
                 if ( _time_warning < (endTime - startTime)) {
                   nout << "msg " << _msg_type <<" from " << _msg_sender << " took "<<  (endTime-startTime) << "secs to process\n";
                   nout << "msg " << _msg_type <<" from " << _msg_sender << " took "<<  (endTime-startTime) << "secs to process\n";
-                  describe_message(nout, "RECV", _dg);
+				  _dg.dump_hex(nout,2);
                 }
                 }
               }
               }
               return false; 
               return false; 
@@ -1146,7 +1146,7 @@ bool CConnectionRepository::check_datagram_ai(PyObject *PycallBackFunction)
                 endTime = ClockObject::get_global_clock()->get_real_time(); 
                 endTime = ClockObject::get_global_clock()->get_real_time(); 
                 if ( _time_warning < (endTime - startTime)) {
                 if ( _time_warning < (endTime - startTime)) {
                   nout << "msg " << _msg_type <<" from " << _msg_sender << " took "<<  (endTime-startTime) << "secs to process\n";
                   nout << "msg " << _msg_type <<" from " << _msg_sender << " took "<<  (endTime-startTime) << "secs to process\n";
-                  describe_message(nout, "RECV", _dg);
+				  _dg.dump_hex(nout,2);                
                 }
                 }
               }
               }
               return true;
               return true;
@@ -1157,7 +1157,7 @@ bool CConnectionRepository::check_datagram_ai(PyObject *PycallBackFunction)
         endTime = ClockObject::get_global_clock()->get_real_time(); 
         endTime = ClockObject::get_global_clock()->get_real_time(); 
         if ( _time_warning < (endTime - startTime)) {
         if ( _time_warning < (endTime - startTime)) {
           nout << "msg " << _msg_type <<" from " << _msg_sender << " took "<<  (endTime-startTime) << "secs to process\n";
           nout << "msg " << _msg_type <<" from " << _msg_sender << " took "<<  (endTime-startTime) << "secs to process\n";
-          describe_message(nout, "RECV", _dg);
+		  _dg.dump_hex(nout,2);   
         }
         }
       }
       }