URL reads have no connect or read timeout

Aperta
#162 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@SebTardif ci sta già lavorando.

Dal 10/11/2026.

  • #163 di @SebTardif — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

In coherence-core, locate Reads.read(URL) and check how it opens the URLConnection; compare its timeout handling with the schema fetches in SaxParser. Reproduce the hang with an HTTP server that accepts a connection without sending a response, then confirm both connect and read timeouts fail with SocketTimeoutException while classpath file URLs still work.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug

Reads.read(URL) opens a URLConnection and never sets a connect timeout or a read timeout. getContentLength() and getInputStream() can wait forever when the host accepts the connection and then sends nothing. Base.read(URL) calls this method.

To Reproduce

Call Reads.read with an http URL whose server accepts the socket and does not send a response.

Expected behaviour

The read fails with SocketTimeoutException instead of waiting forever. SaxParser already uses a 30 second connect timeout for schema fetches. This read should use that same limit for both connect and read.

Environment

  • Coherence CE main, Reads in coherence-core
  • Any current Java runtime

Additional context

Classpath file URLs are unaffected. Timeouts apply to network protocols.

Lingua principale
Java
Stelle
475
Fork
80
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di oracle/coherence

Tutte le issue di oracle/coherence

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.