projects
/
profile
/
ivi
/
rygel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f12ad10
)
core: Fix insane memory usage on ImportResource
author
Jens Georg
<mail@jensge.org>
Mon, 11 Jul 2011 12:16:22 +0000
(14:16 +0200)
committer
Jens Georg
<mail@jensge.org>
Mon, 11 Jul 2011 19:10:26 +0000
(21:10 +0200)
src/rygel/rygel-import-resource.vala
patch
|
blob
|
history
diff --git
a/src/rygel/rygel-import-resource.vala
b/src/rygel/rygel-import-resource.vala
index
8490409
..
a9808d8
100644
(file)
--- a/
src/rygel/rygel-import-resource.vala
+++ b/
src/rygel/rygel-import-resource.vala
@@
-156,10
+156,15
@@
internal class Rygel.ImportResource : GLib.Object, Rygel.StateMachine {
message.got_body.connect (this.got_body_cb);
message.got_headers.connect (this.got_headers_cb);
message.finished.connect (this.finished_cb);
+ message.response_body.set_accumulate (false);
this.run_callback = run.callback;
this.session.queue_message (message, null);
+ debug ("Importing resource from %s to %s",
+ source_uri,
+ this.item.uris[0]);
+
yield;
} catch (Error err) {
warning ("%s", err.message);