Controller fixes...

This commit is contained in:
Adam Ierymenko 2016-08-17 17:37:37 -07:00
parent 1254dece5b
commit faa9a06bf5
4 changed files with 148 additions and 83 deletions

View file

@ -1705,7 +1705,11 @@ public:
if (_controlPlane)
scode = _controlPlane->handleRequest(tc->from,tc->parser.method,tc->url,tc->headers,tc->body,data,contentType);
else scode = 500;
} catch (std::exception &exc) {
fprintf(stderr,"WARNING: unexpected exception processing control HTTP request: %s" ZT_EOL_S,exc.what());
scode = 500;
} catch ( ... ) {
fprintf(stderr,"WARNING: unexpected exception processing control HTTP request: unknown exceptino" ZT_EOL_S);
scode = 500;
}