[jcifs] Strange jetDirect printer behavior

Michael B Allen miallen at ioplex.com
Tue Feb 5 22:52:32 GMT 2008


Fixed. To be released in 1.2.18.

But instead of your patch I just did:

  long start = System.currentTimeMillis();
  while (timeout > 0) {
      response.wait( timeout );

      /* JetDirect printer can respond to regular broadcast query
       * with node status so we need to check to make sure that
       * the record type matches the question type and if not, 
       * loop around and try again.
       */      
      if (response.received && request.questionType == response.recordType)
          return; 
 
      response.received = false;
      timeout -= System.currentTimeMillis() - start;
  }

Mike

-- 
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/


More information about the jcifs mailing list