From c49683cbf283d8393b50dce6cf8bbe72ef09b68a Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 1 Oct 2017 15:22:21 +0200 Subject: [PATCH] Debugging upload --- Site/Automation/UploadFileHandler.ashx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Site/Automation/UploadFileHandler.ashx b/Site/Automation/UploadFileHandler.ashx index c8066858..a681563d 100644 --- a/Site/Automation/UploadFileHandler.ashx +++ b/Site/Automation/UploadFileHandler.ashx @@ -379,11 +379,20 @@ namespace Swarmops.Frontend.Automation debugWriter.WriteLine("Creating socket for backend job. nPdfs: " + pdfsForConversion.Count); debugWriter.Flush(); + debugWriter.WriteLine(" - Websocket frontend port: " + SystemSettings.WebsocketPortFrontend); + debugWriter.Flush(); + + debugWriter.WriteLine(" - authData.Authority is " + (authData.Authority == null? "null" : "not null")); + debugWriter.Flush(); + using ( WebSocket socket = new WebSocket("ws://localhost:" + SystemSettings.WebsocketPortFrontend + "/Front?Auth=" + Uri.EscapeDataString(authData.Authority.ToEncryptedXml()))) { + debugWriter.WriteLine(" - socket is " + (authData.Authority == null? "NULL!?" : "not null")); + debugWriter.Flush(); + socket.Connect(); debugWriter.WriteLine(" - connected");