GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Need a way to specify timeout for http connection which fetches external jsonld schema · Issue #268 · jsonld-java/jsonld-java

Need a way to specify timeout for http connection which fetches external jsonld schema #268

New issue
Copy link
New issue
Copy link
Open
Open
Need a way to specify timeout for http connection which fetches external jsonld schema#268
Copy link

Description

@voiddrum
voiddrum
opened on Jul 18, 2019
Issue body actions

As a result of debugging issue reported in #267 I faced another issue with the code taking considerable amount of time before it times-out the external connection. Need a way to specify the timeout setting to the external connection so that the code can fail fast if the developer wants it to.

Activity

  1. ansell commented on Nov 27, 2019

    @ansell
    ansell
    on Nov 27, 2019
    Member
    More actions

    The way to do this is to customise the DocumentLoader and/or the internal HttpClient instance. This is practically done by customising the JsonLdOptions object that you are using in this particular case with JsonLdOptions.setDocumentLoader, or JsonLdOptions.getDocumentLoader().setHttpClient():

    https://github.com/jsonld-java/jsonld-java/blob/master/core/src/main/java/com/github/jsonldjava/core/JsonLdOptions.java#L289

    https://github.com/jsonld-java/jsonld-java/blob/master/core/src/main/java/com/github/jsonldjava/core/DocumentLoader.java#L107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.