You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1513 Reporter: administrator Status: closed Resolution: not a bug Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
En utilisant input_line sur un socket avec la bibliothèque Unix,
il m'arrive d'obtenir un Sys_error("Invalid argument") lors d'une lecture sur un
socket déjà fermé coté client ( nous sommes ici coté serveur ).
Ce comportement :
n'est pas documenté
devrais plutot aboutir à un End_of_file
Nicolas
The text was updated successfully, but these errors were encountered:
En utilisant input_line sur un socket avec la bibliothèque Unix, il
m'arrive d'obtenir un Sys_error("Invalid argument") lors d'une
lecture sur un socket déjà fermé coté client ( nous sommes ici coté
serveur ).
Ce comportement :
n'est pas documenté
Les entrées-sorties de Caml lèvent Sys_error lorsque les appels
systèmes sous-jacents (ici, read() en Unix, et ReadFromFile() ou recv()
en Windows) signalent une erreur. La doc de Caml ne peut pas inclure
l'intégralité de la spec Unix ou Windows. Et ce d'autant plus que
ladite spec est partielle, et pas forcément respectée par l'OS.
devrais plutot aboutir à un End_of_file
C'est ce qui me semble (condition "fin de fichier" lors de la
lecture), en effet. Avant de crier au bug de Windows, j'aimerais
quand même plus de contexte sur l'erreur, e.g. un programme qui la
reproduise.
Windows detects an error ECONNABORTED while Linux returns an end-of-file
condition. Hard to say who is right. ECONNABORTED is mapped to EINVAL by the
MS C runtime system. At any rate, there's not much we can do in Caml about
this.
Original bug ID: 1513
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Nicolas Cannasse
Version: OCaml 3.06
OS: Win2K
Submission from: abordeaux-103-1-20-136.abo.wanadoo.fr (81.50.41.136)
En utilisant input_line sur un socket avec la bibliothèque Unix,
il m'arrive d'obtenir un Sys_error("Invalid argument") lors d'une lecture sur un
socket déjà fermé coté client ( nous sommes ici coté serveur ).
Ce comportement :
Nicolas
The text was updated successfully, but these errors were encountered: