Le Sunday 02 September 2007 08:18:05 Romain Beauxis, vous avez écrit :
> Though ther is a bug in http: sometime the playlist is not fully
> downloaded.. I suppose it is a bug in the request function..
> I tested with ocamlnet's http_get, it is ok..

Corrected, it was a fault in sockt reading logic:
--- src/tools/http.ml   (révision 4463)
+++ src/tools/http.ml   (copie de travail)
@@ -95,7 +95,7 @@
         let buf = String.create buflen in
         let ans = ref "" in
         let n = ref buflen in
-          while !n = buflen do
+          while !n <> 0 do
             n := Unix.recv socket buf 0 buflen [];
             ans := !ans ^ String.sub buf 0 !n
           done;


-- 
The lips of the righteous feed many:
but fools die for want of wisdom.
- Proverbs 10:21
The lips of the righteous teaches many
But fools die for want of wisdom
- Peter Tosh, Fools Die

Répondre à