projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37c39c4
)
Simplify http_open().
author
Andre Noll
<maan@systemlinux.org>
Sat, 19 Jan 2008 12:09:22 +0000
(13:09 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Sat, 19 Jan 2008 12:09:22 +0000
(13:09 +0100)
No need to shutdown the clients if listen failed: There
can not possibly exist any connected clients at this point.
http_send.c
patch
|
blob
|
history
diff --git
a/http_send.c
b/http_send.c
index
6b67a6a
..
c1a4fc6
100644
(file)
--- a/
http_send.c
+++ b/
http_send.c
@@
-314,10
+314,8
@@
static int http_open(void)
int ret;
listen_fd = para_listen(AF_UNSPEC, IPPROTO_TCP, conf.http_port_arg);
- if (listen_fd < 0) {
- http_shutdown_clients();
+ if (listen_fd < 0)
return listen_fd;
- }
ret = mark_fd_nonblocking(listen_fd);
if (ret < 0) {
PARA_EMERG_LOG("%s\n", para_strerror(-ret));