Page MenuHomePhabricator

D9968.id23951.diff
No OneTemporary

D9968.id23951.diff

diff --git a/support/aphlict/server/aphlict_server.js b/support/aphlict/server/aphlict_server.js
--- a/support/aphlict/server/aphlict_server.js
+++ b/support/aphlict/server/aphlict_server.js
@@ -177,9 +177,18 @@
debug.log('notification: ' + JSON.stringify(msg));
++messages_in;
- transmit(msg);
- response.writeHead(200, {'Content-Type': 'text/plain'});
+ try {
+ transmit(msg);
+ response.writeHead(200, {'Content-Type': 'text/plain'});
+ } catch (err) {
+ debug.log(
+ '<%s> Internal Server Error! %s',
+ request.socket.remoteAddress,
+ err);
+ response.statusCode = 500;
+ response.write('500 Internal Server Error\n');
+ }
} catch (err) {
debug.log(
'<%s> Bad Request! %s',

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 26, 8:44 PM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6714241
Default Alt Text
D9968.id23951.diff (877 B)

Event Timeline