aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r--src/transport/plugin_transport_http_server.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c
index ea4a09175..a8731907e 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -398,6 +398,11 @@ struct HTTP_Message
398 size_t size; 398 size_t size;
399 399
400 /** 400 /**
401 * HTTP/S specific overhead
402 */
403 size_t overhead;
404
405 /**
401 * Continuation function to call once the transmission buffer 406 * Continuation function to call once the transmission buffer
402 * has again space available. NULL if there is no 407 * has again space available. NULL if there is no
403 * continuation to call. 408 * continuation to call.
@@ -680,7 +685,8 @@ server_delete_session (struct Session *s)
680 GNUNET_CONTAINER_DLL_remove (s->msg_head, s->msg_tail, msg); 685 GNUNET_CONTAINER_DLL_remove (s->msg_head, s->msg_tail, msg);
681 if (msg->transmit_cont != NULL) 686 if (msg->transmit_cont != NULL)
682 { 687 {
683 msg->transmit_cont (msg->transmit_cont_cls, &s->target, GNUNET_SYSERR); 688 msg->transmit_cont (msg->transmit_cont_cls, &s->target, GNUNET_SYSERR,
689 msg->size, msg->pos + msg->overhead);
684 } 690 }
685 GNUNET_free (msg); 691 GNUNET_free (msg);
686 msg = tmp; 692 msg = tmp;
@@ -1203,7 +1209,8 @@ server_send_callback (void *cls, uint64_t pos, char *buf, size_t max)
1203 { 1209 {
1204 GNUNET_CONTAINER_DLL_remove (s->msg_head, s->msg_tail, msg); 1210 GNUNET_CONTAINER_DLL_remove (s->msg_head, s->msg_tail, msg);
1205 if (NULL != msg->transmit_cont) 1211 if (NULL != msg->transmit_cont)
1206 msg->transmit_cont (msg->transmit_cont_cls, &s->target, GNUNET_OK); 1212 msg->transmit_cont (msg->transmit_cont_cls, &s->target, GNUNET_OK,
1213 msg->size, msg->size + msg->overhead);
1207 GNUNET_free (msg); 1214 GNUNET_free (msg);
1208 } 1215 }
1209 } 1216 }