Sfoglia il codice sorgente

HPCC-17517 Fix roxie HTTP server too busy errors formatted incorrectly

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Anthony Fishbeck 8 anni fa
parent
commit
b0c1d411f4
2 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 2 0
      common/thorhelper/roxiehelper.hpp
  2. 1 0
      roxie/ccd/ccdprotocol.cpp

+ 2 - 0
common/thorhelper/roxiehelper.hpp

@@ -300,6 +300,7 @@ interface SafeSocket : extends IInterface
     virtual void sendSoapException(IException *E, const char *queryName) = 0;
     virtual void sendJsonException(IException *E, const char *queryName) = 0;
     virtual void setHttpMode(const char *queryName, bool arrayMode, HttpHelper &httphelper) = 0;
+    virtual void setHttpMode(bool mode) = 0;
     virtual void setHeartBeat() = 0;
     virtual bool sendHeartBeat(const IContextLogger &logctx) = 0;
     virtual void flush() = 0;
@@ -341,6 +342,7 @@ public:
     bool readBlock(MemoryBuffer &ret, unsigned maxBlockSize, unsigned timeout = (unsigned) WAIT_FOREVER);
     bool readBlock(StringBuffer &ret, unsigned timeout, HttpHelper *pHttpHelper, bool &, bool &, unsigned maxBlockSize);
     void setHttpMode(const char *queryName, bool arrayMode, HttpHelper &httphelper);
+    void setHttpMode(bool mode) override {httpMode = mode;}
     void setAdaptiveRoot(bool adaptive){adaptiveRoot=adaptive;}
     bool getAdaptiveRoot(){return adaptiveRoot;}
     void checkSendHttpException(HttpHelper &httphelper, IException *E, const char *queryName);

+ 1 - 0
roxie/ccd/ccdprotocol.cpp

@@ -1526,6 +1526,7 @@ private:
 
         try
         {
+            client.setHttpMode(false); //For historical reasons HTTP mode really means SOAP/JSON, we want raw HTTP here.  Should be made more clear
             client.write(message.str(), message.length());
         }
         catch (IException *E)