Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixed Post File Upload
[src/app-framework-binder.git]
/
src
/
http-svc.c
diff --git
a/src/http-svc.c
b/src/http-svc.c
index
ac0606e
..
3b9db7a
100644
(file)
--- a/
src/http-svc.c
+++ b/
src/http-svc.c
@@
-267,9
+267,12
@@
PUBLIC AFB_error httpdStart(AFB_session *session) {
apiUrlLen = strlen (session->config->rootapi);
baseUrlLen= strlen (session->config->rootbase);
rootUrlLen= strlen (session->config->rootdir);
apiUrlLen = strlen (session->config->rootapi);
baseUrlLen= strlen (session->config->rootbase);
rootUrlLen= strlen (session->config->rootdir);
+
+ // Initialise Client Session Hash Table
+ ctxStoreInit (CTX_NBCLIENTS);
- //
TBD open libmagic cache [fail to pass EFENCE check
]
- //
initLibMagic (session);
+ //
TBD open libmagic cache [fail to pass EFENCE check (allocating 0 bytes)
]
+ //initLibMagic (session);
if (verbose) {
if (verbose) {
@@
-295,20
+298,11
@@
PUBLIC AFB_error httpdStart(AFB_session *session) {
// infinite loop
PUBLIC AFB_error httpdLoop(AFB_session *session) {
// infinite loop
PUBLIC AFB_error httpdLoop(AFB_session *session) {
- static int count = 0;
-
+ int count = 0;
if (verbose) fprintf(stderr, "AFB:notice entering httpd waiting loop\n");
if (verbose) fprintf(stderr, "AFB:notice entering httpd waiting loop\n");
- if (session->foreground) {
-
- while (TRUE) {
- fprintf(stderr, "AFB:notice Use Ctrl-C to quit\n");
- (void) getc(stdin);
- }
- } else {
- while (TRUE) {
- sleep(3600);
- if (verbose) fprintf(stderr, "AFB:notice httpd alive [%d]\n", count++);
- }
+ while (TRUE) {
+ sleep(3600);
+ if (verbose) fprintf(stderr, "AFB:notice httpd alive [%d]\n", count++);
}
// should never return from here
}
// should never return from here