From: Faiyaz Ahmed Date: Thu, 3 May 2007 03:51:18 +0000 (+0000) Subject: Merge from head. Resolves #20611. X-Git-Tag: planetlab-4_0-rc3~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8359bada1ea724bb9dc910539e2f5a99caf17d4f;p=nodemanager.git Merge from head. Resolves #20611. --- diff --git a/forward_api_calls.c b/forward_api_calls.c index fa7741f..fe918a8 100644 --- a/forward_api_calls.c +++ b/forward_api_calls.c @@ -6,12 +6,14 @@ * Doesn't handle Unicode properly. UTF-8 is probably OK. * * Change History: + * 2007/05/02: [deisenst] Increased buffer space to 1MiB. + * Increased TIMEOUT_SECS to 2min. * 2006/10/30: [deisenst] Changed location of Unix socket. * 2006/09/14: [deisenst] Switched to PF_UNIX sockets so that SO_PEERCRED works * 2006/09/08: [deisenst] First version. */ -static const int TIMEOUT_SECS = 30; +static const int TIMEOUT_SECS = 120; const char *API_addr = "/tmp/sliver_mgr.api"; static const char *Header = @@ -54,8 +56,8 @@ static void ERROR(const char *s) { int main(int argc, char **argv, char **envp) { ssize_t len; - char header_buf[4096]; - char content_buf[4096]; + char header_buf[1<<20]; + char content_buf[1<<20]; size_t content_len; int sockfd; struct sockaddr_un addr; @@ -65,6 +67,7 @@ int main(int argc, char **argv, char **envp) { /* read xmlrpc request from stdin * 4 KiB ought to be enough for anyone + * 2007/05/02: [deisenst] It wasn't. */ content_len = 0; while(content_len < sizeof content_buf) {