projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- implementation for mantis 0002485
[oweals/gnunet.git]
/
src
/
transport
/
plugin_transport_http_server.c
diff --git
a/src/transport/plugin_transport_http_server.c
b/src/transport/plugin_transport_http_server.c
index 4a6e8c18f942c6bcec9745bbe9a607781f17b59f..8ac301341a966e6f0f8ade82f85ee79722b32c63 100644
(file)
--- a/
src/transport/plugin_transport_http_server.c
+++ b/
src/transport/plugin_transport_http_server.c
@@
-661,8
+661,10
@@
server_access_cb (void *cls, struct MHD_Connection *mhd_connection,
if (sc->direction == _SEND)
{
response =
if (sc->direction == _SEND)
{
response =
- MHD_create_response_from_callback (-1, 32 * 1024, &server_send_callback,
- s, NULL);
+ MHD_create_response_from_callback (MHD_SIZE_UNKNOWN,
+ 32 * 1024,
+ &server_send_callback, s,
+ NULL);
MHD_queue_response (mhd_connection, MHD_HTTP_OK, response);
MHD_destroy_response (response);
return MHD_YES;
MHD_queue_response (mhd_connection, MHD_HTTP_OK, response);
MHD_destroy_response (response);
return MHD_YES;
@@
-877,7
+879,7
@@
server_disconnect (struct Session *s)
int
server_send (struct Session *s, struct HTTP_Message *msg)
{
int
server_send (struct Session *s, struct HTTP_Message *msg)
{
- GNUNET_CONTAINER_DLL_insert (s->msg_head, s->msg_tail, msg);
+ GNUNET_CONTAINER_DLL_insert
_tail
(s->msg_head, s->msg_tail, msg);
if (s->addrlen == sizeof (struct IPv4HttpAddress))
{
if (s->addrlen == sizeof (struct IPv4HttpAddress))
{