Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Add socket_timeout to file_get_contents

Offen
#23,878 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
52/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
c, php
Bereich
networking

Rechercherichtung

Start at the file_get_contents entry point and trace how contextOptions['http']['timeout'] is applied during connection and reads. Identify the networking path where a socket_timeout option would belong, then verify that it limits slow connections as well as long reads without changing existing timeout behavior.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Feature Status: Needs Triage
Description

At the moment file_get_contents can only be set a read timeout via $contextOptions['http']['timeout'], which is nice for long reads. In case the server fails to connect or takes very long this option is not used at all.
In most cases the user needs an overall timeout, since it can break page loading.

Vorherrschende Sprache
C
Sterne
40.4k
Forks
8.2k
Ø Merge
2 T. 15 Std.
Gemergte PRs (30 T.)
113

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus php/php-src

Alle Issues in php/php-src

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.