case SOUP_MESSAGE_IO_STATE_BODY_START:
+#if ENABLE(TIZEN_DLOG)
+ uri = soup_uri_to_string(soup_message_get_uri(msg), FALSE);
+ TIZEN_LOGI("[BGN] soup_io_r_body : %s", uri);
+ g_free(uri);
+ uri = NULL;
+#endif
if (!io->body_istream) {
GInputStream *body_istream = soup_body_input_stream_new (G_INPUT_STREAM (io->istream),
io->read_encoding,
blocking,
cancellable, error);
if (nread > 0) {
+#if ENABLE(TIZEN_DLOG)
+ uri = soup_uri_to_string(soup_message_get_uri(msg), FALSE);
+ TIZEN_LOGI("[EVT] soup_io_r_body : %ld bytes", nread);
+ g_free(uri);
+ uri = NULL;
+#endif
buffer->length = nread;
soup_message_body_got_chunk (io->read_body, buffer);
soup_message_got_chunk (msg, buffer);
case SOUP_MESSAGE_IO_STATE_BODY_DONE:
+#if ENABLE(TIZEN_DLOG)
+ uri = soup_uri_to_string(soup_message_get_uri(msg), FALSE);
+ TIZEN_LOGI("[END] soup_io_r_body : %s", uri);
+ g_free(uri);
+ uri = NULL;
+#endif
io->read_state = SOUP_MESSAGE_IO_STATE_FINISHING;
soup_message_got_body (msg);
break;
void
soup_message_got_chunk (SoupMessage *msg, SoupBuffer *chunk)
{
+#if ENABLE(TIZEN_DLOG)
+ char *uri = soup_uri_to_string(soup_message_get_uri(msg), FALSE);
+#endif
g_signal_emit (msg, signals[GOT_CHUNK], 0, chunk);
+#if ENABLE(TIZEN_DLOG)
+ TIZEN_LOGI("[EVT] GOT_CHUNK signal : %s", uri);
+ g_free(uri);
+ uri = NULL;
+#endif
}
void
soup_message_got_body (SoupMessage *msg)
{
+#if ENABLE(TIZEN_DLOG)
+ char *uri = soup_uri_to_string(soup_message_get_uri(msg), FALSE);
+#endif
g_signal_emit (msg, signals[GOT_BODY], 0);
+#if ENABLE(TIZEN_DLOG)
+ TIZEN_LOGI("[EVT] GOT_BODY signal : %s", uri);
+ g_free(uri);
+ uri = NULL;
+#endif
}
void
TIZEN_LOGI("[EVT] soup_msg_fin : %s", uri);
#endif
#if ENABLE(TIZEN_PERFORMANCE_TEST_LOG)
- prctl_with_url("[EVT] soup_msg_fin : ", uri);
+ prctl_with_url("[EVT] soup_msg_fin : %s", uri);
#endif
g_free(uri);
#endif