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
Audio plugin: choose between Pulse/ALSA at runtime
[src/app-framework-binder.git]
/
src
/
http-svc.c
diff --git
a/src/http-svc.c
b/src/http-svc.c
index
1eeb287
..
839fc2f
100644
(file)
--- a/
src/http-svc.c
+++ b/
src/http-svc.c
@@
-249,7
+249,7
@@
STATIC int newRequest(void *cls,
}
// Nothing respond to this request Files, API, Angular Base
}
// Nothing respond to this request Files, API, Angular Base
- const char *errorstr = "<html><body>A
lsa-Json-Gateway Unknown or Not readable
file</body></html>";
+ const char *errorstr = "<html><body>A
FB-Daemon File Not Find
file</body></html>";
response = MHD_create_response_from_buffer(strlen(errorstr), (void*)errorstr, MHD_RESPMEM_PERSISTENT);
ret = MHD_queue_response(connection, MHD_HTTP_INTERNAL_SERVER_ERROR, response);
return (MHD_YES);
response = MHD_create_response_from_buffer(strlen(errorstr), (void*)errorstr, MHD_RESPMEM_PERSISTENT);
ret = MHD_queue_response(connection, MHD_HTTP_INTERNAL_SERVER_ERROR, response);
return (MHD_YES);
@@
-298,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