ALT Linux Bugzilla
– Attachment 4723 Details for
Bug 24795
Стремительное увеличение открытых файлов
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
исправление
client-close-connection.patch (text/plain), 1.21 KB, created by
Vladislav Zavjalov
on 2010-12-21 21:15:24 MSK
(
hide
)
Description:
исправление
Filename:
MIME Type:
Creator:
Vladislav Zavjalov
Created:
2010-12-21 21:15:24 MSK
Size:
1.21 KB
patch
obsolete
>From 3be7a1c4ae6c8a6b6b49f58116e8db33919f05e4 Mon Sep 17 00:00:00 2001 >From: Vladislav Zavjalov <slazav@altlinux.org> >Date: Wed, 22 Dec 2010 00:13:16 +0300 >Subject: [PATCH] http_client.c: close connection after request (closes: #24795) > >--- > vhttpd/lib/http_client.c | 14 +++++++++----- > 1 files changed, 9 insertions(+), 5 deletions(-) > >diff --git a/vhttpd/lib/http_client.c b/vhttpd/lib/http_client.c >index 8e72bf6..4667d7b 100644 >--- a/vhttpd/lib/http_client.c >+++ b/vhttpd/lib/http_client.c >@@ -14,11 +14,15 @@ request_server(channel_t *ch, const message_t *request, message_t **response) > > conn = connection_new(ch,NULL,NULL); > >- if (connection_send_message(conn,request)) >- return bad_request; >- >- *response = create_response_message(unfinished); >- while ((retcode = connection_receive_message(conn,*response)) == unfinished) ; /* try until success */ >+ if (connection_send_message(conn,request)){ >+ retcode=bad_request; >+ } >+ else { >+ *response = create_response_message(unfinished); >+ while ((retcode = connection_receive_message(conn,*response)) == unfinished) ; /* try until success */ >+ } >+ destroy_channel (connection_get_channel(conn)); >+ connection_delete (conn); > return retcode; > } > >-- >1.7.2.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 24795
:
4721
|
4722
| 4723