Changeset 258 in flair-src for trunk/tools


Ignore:
Timestamp:
Jul 24, 2018, 4:52:00 PM (6 years ago)
Author:
Sanahuja Guillaume
Message:

avoid trying to send xml message of size=0

add debug in case of gcs crash when clicking on apply

Location:
trunk/tools/FlairGCS/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/FlairGCS/src/ConnectionLayout.cpp

    r253 r258  
    6565
    6666void ConnectionLayout::XmlToSend(QDomDocument doc) {
    67   // fprintf(stderr,"xml to send\n%s\n",doc.toString().toLocal8Bit().constData());
     67   //fprintf(stderr,"xml to send\n%s\n",doc.toString().toLocal8Bit().constData());
    6868 
    6969  // xml to send a mettre dans le manager
    70   socket->write(doc.toString().toLocal8Bit().constData(),doc.toString().toLocal8Bit().length());/*
     70  if(doc.toString().toLocal8Bit().length()!=0) {
     71    socket->write(doc.toString().toLocal8Bit().constData(),doc.toString().toLocal8Bit().length());
     72  }
     73  /*
    7174  QMetaObject::invokeMethod(
    7275      socket, "write", Qt::BlockingQueuedConnection,
  • trunk/tools/FlairGCS/src/UdtSocket.cpp

    r255 r258  
    241241  qint64 sent = UDT::sendmsg(socket, buf, size, ttl, inOrder);
    242242  if (sent != size) {
     243    fprintf(stderr,"sent %lld/%lld %s\n",sent ,size,UDT::getlasterror().getErrorMessage());
    243244    fprintf(stderr,"%s, error writting to udt (%s)\n",name.toLocal8Bit().constData(), UDT::getlasterror().getErrorMessage());
    244245    if (UDT::getlasterror().getErrorCode() == 2001) {
Note: See TracChangeset for help on using the changeset viewer.