mldonkey-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-bugs] [bug #21172] mlnet[pidnumber] general protection rip:504


From: spiralvoice
Subject: [Mldonkey-bugs] [bug #21172] mlnet[pidnumber] general protection rip:50498d rsp:7377cc error:0
Date: Sun, 04 Nov 2007 20:21:05 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.8) Gecko/20071004 Iceweasel/2.0.0.8 (Debian-2.0.0.8-1)

Follow-up Comment #28, bug #21172 (project mldonkey):

Updated crash_debug.patch

I changed the way the client is disconnected after receiving
data for an already finished file, see the patch in donkeyOneFile.ml

@@ -301,8 +348,12 @@
 (*                connection_delay c.client_connection_control; *)
                 match c.client_source.DonkeySources.source_sock with
                   Connection sock ->
+lprintf_nl "debug get_from_client, disconnect %s" (full_client_identifier
c);
+                    disconnect_client c (Closed_for_error (Printf.sprintf
"No file to download from %s" (full_client_identifier c)));
+(*
                     TcpBufferedSocket.close sock
-                      (Closed_for_error "No file to download");
+                      (Closed_for_error (Printf.sprintf "No file to download
from %s" (full_client_identifier c)));
+*)
                 | _ -> ()
               end

Here I am using function "disconnect_client" instead of
TcpBufferedSocket.close. I do not know if this fixes the bug,
which is not present when using Ocaml < 3.10, but its worth a try.

(file #14296)
    _______________________________________________________

Additional Item Attachment:

File name: crash_debug.patch              Size:16 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?21172>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]