Examples of markForClose()


Examples of com.subgraph.orchid.DirectoryCircuit.markForClose()

        if(loadingEventCode > 0) {
          initializationTracker.notifyEvent(loadingEventCode);
        }
        return stream;
      } catch (StreamConnectFailedException e) {
        circuit.markForClose();
        failCount += 1;
      } catch (TimeoutException e) {
        circuit.markForClose();
      }
    }
View Full Code Here

Examples of com.subgraph.orchid.DirectoryCircuit.markForClose()

        return stream;
      } catch (StreamConnectFailedException e) {
        circuit.markForClose();
        failCount += 1;
      } catch (TimeoutException e) {
        circuit.markForClose();
      }
    }
    throw new OpenFailedException("Retry count exceeded opening directory stream");
  }
View Full Code Here

Examples of com.subgraph.orchid.InternalCircuit.markForClose()

   
    final InternalCircuit rendezvous = circuitManager.getCleanInternalCircuit();
    logger.fine("Establishing rendezvous for "+ logServiceName());
    RendezvousProcessor rp = new RendezvousProcessor(rendezvous);
    if(!rp.establishRendezvous()) {
      rendezvous.markForClose();
      return null;
    }
    logger.fine("Opening introduction circuit for "+ logServiceName());
    final IntroductionProcessor introductionProcessor = openIntroduction();
    if(introductionProcessor == null) {
View Full Code Here

Examples of com.subgraph.orchid.InternalCircuit.markForClose()

    }
    logger.fine("Opening introduction circuit for "+ logServiceName());
    final IntroductionProcessor introductionProcessor = openIntroduction();
    if(introductionProcessor == null) {
      logger.info("Failed to open connection to any introduction point");
      rendezvous.markForClose();
      return null;
    }
    logger.fine("Sending introduce cell for "+ logServiceName());
    final TorTapKeyAgreement kex = new TorTapKeyAgreement();
    final boolean icResult = introductionProcessor.sendIntroduce(introductionProcessor.getServiceKey(), kex.getPublicKeyBytes(), rp.getCookie(), rp.getRendezvousRouter());
View Full Code Here

Examples of com.subgraph.orchid.InternalCircuit.markForClose()

    logger.fine("Sending introduce cell for "+ logServiceName());
    final TorTapKeyAgreement kex = new TorTapKeyAgreement();
    final boolean icResult = introductionProcessor.sendIntroduce(introductionProcessor.getServiceKey(), kex.getPublicKeyBytes(), rp.getCookie(), rp.getRendezvousRouter());
    introductionProcessor.markCircuitForClose();
    if(!icResult) {
      rendezvous.markForClose();
      return null;
    }
    logger.fine("Processing RV2 for "+ logServiceName());
    HiddenServiceCircuit hsc = rp.processRendezvous2(kex);
    if(hsc == null) {
View Full Code Here

Examples of com.subgraph.orchid.InternalCircuit.markForClose()

      return null;
    }
    logger.fine("Processing RV2 for "+ logServiceName());
    HiddenServiceCircuit hsc = rp.processRendezvous2(kex);
    if(hsc == null) {
      rendezvous.markForClose();
    }

    logger.fine("Rendezvous circuit opened for "+ logServiceName());
   
    return hsc;
View Full Code Here

Examples of com.subgraph.orchid.InternalCircuit.markForClose()

   
    try {
      final DirectoryCircuit dc = circuit.cannibalizeToDirectory(directory);
      return dc.openDirectoryStream(10000, true);
    } catch (StreamConnectFailedException e) {
      circuit.markForClose();
      throw new OpenFailedException("Failed to open directory stream");
    } catch (TorException e) {
      circuit.markForClose();
      throw new OpenFailedException("Failed to extend circuit to HS directory: "+ e.getMessage());
    }
View Full Code Here

Examples of com.subgraph.orchid.InternalCircuit.markForClose()

      return dc.openDirectoryStream(10000, true);
    } catch (StreamConnectFailedException e) {
      circuit.markForClose();
      throw new OpenFailedException("Failed to open directory stream");
    } catch (TorException e) {
      circuit.markForClose();
      throw new OpenFailedException("Failed to extend circuit to HS directory: "+ e.getMessage());
    }
  }

  private HSDescriptor readDocument(HSDescriptorDirectory dd, ByteBuffer body) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.