Commits

libqxt committed 8d1748f

abouttoclose signal

Comments (0)

Files changed (2)

src/web/qxtwebcore.cpp

 		{
                 tcpSocket->write("Status: 500 INTERNAL SERVER ERROR\r\ncontent-type: text/html\r\n\r\nERROR HANDLING NOT IMPLEMENTED");
 		qDebug("controller '%s' not found",path.constData()); 
+                emit(qxt_p().aboutToClose());
+                tcpSocket->disconnectFromHost();
                 return;
 		}
 
                 {
                 tcpSocket->write("Status: 500 INTERNAL SERVER ERROR\r\ncontent-type: text/html\r\n\r\nERROR HANDLING NOT IMPLEMENTED");
                 }
-
+        emit(qxt_p().aboutToClose());
         tcpSocket->disconnectFromHost();
-
         }
 
 

src/web/qxtwebcore.h

 
                 /*helper*/
                 static QxtError parseString(QByteArray str, post_t & POST);
-                static QByteArray readContent(int maxsize);
+                static QByteArray readContent(int maxsize=5000);
 
 
 
         signals:
                 void request();
+                void aboutToClose();
 
 	};