title: OpenDDS - message_writer->write(...) error DDS::RETCODE_TIMEOUT
body: <p>I'm creating an simple message program in openDDS. This program uses a publisher and a subscriber. In the publisher I write a message with:</p>
  
  <pre><code>DDS::ReturnCode_t error = message_writer-&gt;write(message, DDS::HANDLE_NIL);
  </code></pre>
  
  <p>When I try to send from 180 bytes to 3012 bytes the writer fails with: </p>
  
  <blockquote>
    <p>error 10 (== DDS::RETCODE_TIMEOUT)</p>
  </blockquote>
  
  <p>, after about 260 messages (I'm trying to send 1500 messages). What I find strange is that it works when I send messages that are from 1 &lt;= x &lt; 180 and 3012 > x > 102400+ bytes.</p>
  
  <p>I'm receiving the error on the writer side. Below the writer I do: </p>
  
  <pre><code>if (error != DDS::RETCODE_OK) { 
      std::cerr &lt;&lt; "writer failed because of error" &lt;&lt; error &lt;&lt; std::endl; 
  }
  </code></pre>
  
  <p>my idl file is like so: </p>
  
  <pre><code>module Mess { 
      struct Mes { 
          string message; 
      };}; 
  </code></pre>
  
  <p>So this uses TAO string manager. I pass a char* into the message.</p>
  
  <pre><code>Messenger::Message message;
  
  message.message = "some_Message"; 
  </code></pre>
  
  <p>Then write the message like before</p>
  
  <p>Participant:</p>
  
  <pre><code>DDS::DomainParticipant_var participant = dpf-&gt;create_participant(DOMAIN_ID, PARTICIPANT_QOS_DEFAULT, 0, OpenDDS::DCPS::DEFAULT_STATUS_MASK);
  </code></pre>
  
  <p>Topic:</p>
  
  <pre><code>DDS::Topic_var topic = participant-&gt;create_topic("TopicName", type_name, TOPIC_QOS_DEFAULT, 0, OpenDDS::DCPS::DEFAULT_STATUS_MASK);
  </code></pre>
  
  <p>Publisher:</p>
  
  <pre><code>DDS::Publisher_var publisher = participant-&gt;create_publisher(PUBLISHER_QOS_DEFAULT, 0, OpenDDS::DCPS::DEFAULT_STATUS_MASK);
  </code></pre>
  
  <p>Writer:</p>
  
  <pre><code>DDS::DataWriter_var writer = publisher-&gt;create_datawriter(topic, DATAWRITER_QOS_DEFAULT, 0, OpenDDS::DCPS::DEFAULT_STATUS_MASK);
  </code></pre>
  
  <p>Any help is well appreciated. Thanks!</p>