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/
_______________________________________________
Mldonkey-bugs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/mldonkey-bugs