Page MenuHomePhabricator

D9968.diff
No OneTemporary

D9968.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
Thu, Dec 19, 9:46 AM (6 h, 12 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6906958
Default Alt Text
D9968.diff (877 B)

Event Timeline