From 77eb3b1643661424f8f29e47650a64fb41e4614a Mon Sep 17 00:00:00 2001 From: stefanocasazza Date: Fri, 20 Jul 2018 18:03:19 +0200 Subject: [PATCH] add UHTTP:body plus sync --- examples/WiAuth/v2/wi_auth_declaration2.h | 6 +- include/ulib/event/event_fd.h | 4 +- include/ulib/examples/wi_auth_declaration.h | 4 +- include/ulib/net/server/usp_macro.h | 6 +- include/ulib/serialize/flatbuffers.h | 4 +- include/ulib/utility/uhttp.h | 12 +- src/ulib/net/server/plugin/mod_echo.cpp | 2 +- src/ulib/net/server/plugin/mod_fcgi.cpp | 6 +- src/ulib/net/server/plugin/mod_nodog.cpp | 4 +- src/ulib/net/server/plugin/mod_scgi.cpp | 2 +- .../net/server/plugin/mod_shib/mod_shib.cpp | 4 +- src/ulib/net/server/plugin/mod_soap.cpp | 2 +- src/ulib/net/server/plugin/mod_ssi.cpp | 6 +- src/ulib/net/server/plugin/mod_tsa.cpp | 2 +- .../net/server/plugin/python/mod_python.cpp | 2 +- src/ulib/net/server/plugin/ruby/mod_ruby.cpp | 4 +- src/ulib/net/server/plugin/usp/db.usp | 3 - src/ulib/net/server/plugin/usp/edb.usp | 3 - src/ulib/net/server/plugin/usp/equery.usp | 3 - src/ulib/net/server/plugin/usp/eupdate.usp | 3 - src/ulib/net/server/plugin/usp/fortune.usp | 3 - src/ulib/net/server/plugin/usp/mdb.usp | 3 - src/ulib/net/server/plugin/usp/mfortune.usp | 3 - src/ulib/net/server/plugin/usp/mquery.usp | 3 - src/ulib/net/server/plugin/usp/mupdate.usp | 3 - src/ulib/net/server/plugin/usp/query.usp | 3 - src/ulib/net/server/plugin/usp/rdb.usp | 3 - src/ulib/net/server/plugin/usp/rfortune.usp | 3 - src/ulib/net/server/plugin/usp/rquery.usp | 3 - src/ulib/net/server/plugin/usp/rupdate.usp | 3 - src/ulib/net/server/plugin/usp/update.usp | 3 - .../net/server/plugin/usp/usp_translator.cpp | 12 +- src/ulib/utility/http2.cpp | 12 +- src/ulib/utility/uhttp.cpp | 213 ++++++++++-------- tests/examples/TSA/tsaserial | 2 +- .../FrameworkBenchmarks/ULib/src/db.usp | 3 - .../FrameworkBenchmarks/ULib/src/edb.usp | 3 - .../FrameworkBenchmarks/ULib/src/equery.usp | 3 - .../FrameworkBenchmarks/ULib/src/eupdate.usp | 3 - .../FrameworkBenchmarks/ULib/src/fortune.usp | 3 - .../FrameworkBenchmarks/ULib/src/mdb.usp | 3 - .../FrameworkBenchmarks/ULib/src/mfortune.usp | 3 - .../FrameworkBenchmarks/ULib/src/mquery.usp | 3 - .../FrameworkBenchmarks/ULib/src/mupdate.usp | 3 - .../FrameworkBenchmarks/ULib/src/query.usp | 3 - .../FrameworkBenchmarks/ULib/src/rdb.usp | 3 - .../FrameworkBenchmarks/ULib/src/rfortune.usp | 3 - .../FrameworkBenchmarks/ULib/src/rquery.usp | 3 - .../FrameworkBenchmarks/ULib/src/rupdate.usp | 3 - .../FrameworkBenchmarks/ULib/src/update.usp | 3 - tests/examples/tsa_http.test | 10 +- tests/examples/web_server.sh | 8 +- tests/examples/web_server.test | 5 +- 53 files changed, 188 insertions(+), 234 deletions(-) diff --git a/examples/WiAuth/v2/wi_auth_declaration2.h b/examples/WiAuth/v2/wi_auth_declaration2.h index 3ac5ed10..ecee5d8d 100644 --- a/examples/WiAuth/v2/wi_auth_declaration2.h +++ b/examples/WiAuth/v2/wi_auth_declaration2.h @@ -710,7 +710,7 @@ static bool getDataFromPOST(bool bpeer) UFlatBuffer fb, vec; - fb.setRoot(*UClientImage_Base::body); + fb.setRoot(*UHTTP::body); fb.AsVector(vec); *ap = vec.AsVectorGet(0); @@ -1493,11 +1493,11 @@ static void POST_info() { U_TRACE_NO_PARAM(5, "::POST_info()") - U_INTERNAL_DUMP("UClientImage_Base::body(%u) = %#V", UClientImage_Base::body->size(), UClientImage_Base::body->rep) + U_INTERNAL_DUMP("UHTTP::body(%u) = %#V", UHTTP::body->size(), UHTTP::body->rep) UFlatBuffer fb, vec; - fb.setRoot(*UClientImage_Base::body); + fb.setRoot(*UHTTP::body); fb.AsVector(vec); *ap = vec.AsVectorGet(0); diff --git a/include/ulib/event/event_fd.h b/include/ulib/event/event_fd.h index 16214cbb..ee373e1c 100644 --- a/include/ulib/event/event_fd.h +++ b/include/ulib/event/event_fd.h @@ -20,7 +20,9 @@ # include #endif -#include +#ifndef _MSWINDOWS_ +# include +#endif #ifndef EPOLLIN #define EPOLLIN 0x0001 diff --git a/include/ulib/examples/wi_auth_declaration.h b/include/ulib/examples/wi_auth_declaration.h index 65ea0c9d..68c5868d 100644 --- a/include/ulib/examples/wi_auth_declaration.h +++ b/include/ulib/examples/wi_auth_declaration.h @@ -7396,7 +7396,7 @@ static void POST_info() U_INTERNAL_ASSERT_EQUALS(UServer_Base::bssl, false) #ifdef USE_LIBZ - if (UStringExt::isGzip(*UClientImage_Base::body)) *UClientImage_Base::body = UStringExt::gunzip(*UClientImage_Base::body); + if (UStringExt::isGzip(*UHTTP::body)) *UHTTP::body = UStringExt::gunzip(*UHTTP::body); #endif uint32_t end; @@ -7583,7 +7583,7 @@ static void POST_roaming() U_TRACE_NO_PARAM(5, "::POST_roaming()") #ifdef USE_LIBZ - if (UStringExt::isGzip(*UClientImage_Base::body)) *UClientImage_Base::body = UStringExt::gunzip(*UClientImage_Base::body); + if (UStringExt::isGzip(*UHTTP::body)) *UHTTP::body = UStringExt::gunzip(*UHTTP::body); #endif uint32_t end; diff --git a/include/ulib/net/server/usp_macro.h b/include/ulib/net/server/usp_macro.h index 90a3947d..2d372cc3 100644 --- a/include/ulib/net/server/usp_macro.h +++ b/include/ulib/net/server/usp_macro.h @@ -24,12 +24,12 @@ #define USP_PRINTF(fmt,args...) (UClientImage_Base::_buffer->snprintf(U_CONSTANT_TO_PARAM(fmt) , ##args),USP_PUTS_STRING(*UClientImage_Base::_buffer)) #define USP_PRINTF_ADD(fmt,args...) UClientImage_Base::wbuffer->snprintf_add(U_CONSTANT_TO_PARAM(fmt) , ##args) -#define USP_JSON_REQUEST_PARSE(obj) JSON_parse(*UClientImage_Base::body,(obj)) -#define USP_JFIND_REQUEST(type,str) UValue::jfind(*UClientImage_Base::body,#type,U_CONSTANT_SIZE(#type),(str)) +#define USP_JSON_REQUEST_PARSE(obj) JSON_parse(*UHTTP::body,(obj)) +#define USP_JFIND_REQUEST(type,str) UValue::jfind(*UHTTP::body,#type,U_CONSTANT_SIZE(#type),(str)) #define USP_OBJ_JSON_stringify(obj) JSON_OBJ_stringify(*UClientImage_Base::wbuffer,(obj)) -#define USP_SERIALIZE_OBJECT(class,obj) UFlatBuffer::toObject(*UClientImage_Base::body,(obj)) +#define USP_SERIALIZE_OBJECT(class,obj) UFlatBuffer::toObject(*UHTTP::body,(obj)) #define USP_XML_PUTS(string) \ ((void)UClientImage_Base::_encoded->reserve((string).size() * 4), \ diff --git a/include/ulib/serialize/flatbuffers.h b/include/ulib/serialize/flatbuffers.h index fa4d942b..46fcd11f 100644 --- a/include/ulib/serialize/flatbuffers.h +++ b/include/ulib/serialize/flatbuffers.h @@ -16,7 +16,9 @@ #include -#include +#ifndef _MSWINDOWS_ +# include +#endif /** * @see http://google.github.io/flatbuffers/index.html diff --git a/include/ulib/utility/uhttp.h b/include/ulib/utility/uhttp.h index a9403186..45f8065c 100644 --- a/include/ulib/utility/uhttp.h +++ b/include/ulib/utility/uhttp.h @@ -172,6 +172,7 @@ public: static UFile* file; static UString* ext; static UString* etag; + static UString* body; static UString* qcontent; static UString* pathname; static UString* rpathname; @@ -204,7 +205,7 @@ public: static bool scanfHeaderRequest(const char* ptr, uint32_t size); static bool scanfHeaderResponse(const char* ptr, uint32_t size); static bool readHeaderResponse(USocket* socket, UString& buffer); - static bool readBodyResponse(USocket* socket, UString* buffer, UString& body); + static bool readBodyResponse(USocket* socket, UString* buffer, UString& lbody); static UString getPathComponent(uint32_t index); // Returns the path element at the specified index @@ -429,8 +430,7 @@ public: U_TRACE_NO_PARAM(0, "UHTTP::setResponse()") U_ASSERT(ext->empty()) - - UClientImage_Base::body->clear(); // clean body to avoid writev() in response... + U_ASSERT(UClientImage_Base::body->empty()) handlerResponse(); } @@ -1401,7 +1401,7 @@ private: static int handlerREAD(); static void processRequest(); static void handlerResponse(); - static void setDynamicResponse(const UString& body, const UString& header = UString::getStringNull(), const UString& content_type = UString::getStringNull()); + static void setDynamicResponse(const UString& lbody, const UString& header = UString::getStringNull(), const UString& content_type = UString::getStringNull()); #ifndef U_LOG_DISABLE static int handlerREADWithLog() @@ -1478,7 +1478,7 @@ private: static void checkArrayCompressData(UFileCacheData* ptr) U_NO_EXPORT; # endif - static inline bool compress(const UString& body) U_NO_EXPORT; + static inline bool compress(UString& header, const UString& lbody) U_NO_EXPORT; static inline void setAcceptEncoding(const char* ptr, uint32_t len) U_NO_EXPORT; #endif @@ -1508,7 +1508,7 @@ private: static bool splitCGIOutput(const char*& ptr1, const char* ptr2) U_NO_EXPORT; static void setHeaderForCache(UFileCacheData* ptr, UString& data) U_NO_EXPORT; static void setResponseForRange(off_t start, off_t end, uint32_t header) U_NO_EXPORT; - static bool readDataChunked(USocket* sk, UString* pbuffer, UString& body) U_NO_EXPORT; + static bool readDataChunked(USocket* sk, UString* pbuffer, UString& lbody) U_NO_EXPORT; static void manageDataForCache(const UString& basename, const UString& suffix) U_NO_EXPORT; static bool checkDataSession(const UString& token, time_t expire, UString* data) U_NO_EXPORT; static void putDataInCache(const UString& path, const UString& fmt, UString& content) U_NO_EXPORT; diff --git a/src/ulib/net/server/plugin/mod_echo.cpp b/src/ulib/net/server/plugin/mod_echo.cpp index 4cf07d16..563bc434 100644 --- a/src/ulib/net/server/plugin/mod_echo.cpp +++ b/src/ulib/net/server/plugin/mod_echo.cpp @@ -40,7 +40,7 @@ int UEchoPlugIn::handlerRequest() { U_TRACE_NO_PARAM(0, "UEchoPlugIn::handlerRequest()") - UClientImage_Base::body->clear(); + U_ASSERT(UClientImage_Base::body->empty()) UClientImage_Base::setRequestProcessed(); UClientImage_Base::setNoHeaderForResponse(); diff --git a/src/ulib/net/server/plugin/mod_fcgi.cpp b/src/ulib/net/server/plugin/mod_fcgi.cpp index 88c3b633..5deadc7c 100644 --- a/src/ulib/net/server/plugin/mod_fcgi.cpp +++ b/src/ulib/net/server/plugin/mod_fcgi.cpp @@ -338,9 +338,9 @@ int UFCGIPlugIn::handlerRequest() // maybe we have some data to put on stdin of cgi process (POST) - U_INTERNAL_DUMP("UClientImage_Base::body(%u) = %V", UClientImage_Base::body->size(), UClientImage_Base::body->rep) + U_INTERNAL_DUMP("UHTTP::body(%u) = %V", UHTTP::body->size(), UHTTP::body->rep) - size = UClientImage_Base::body->size(); + size = UHTTP::body->size(); if (size) { @@ -357,7 +357,7 @@ int UFCGIPlugIn::handlerRequest() if (size) { - (void) request.append(*UClientImage_Base::body); + (void) request.append(*UHTTP::body); fill_FCGIBeginRequest(FCGI_STDIN, 0); diff --git a/src/ulib/net/server/plugin/mod_nodog.cpp b/src/ulib/net/server/plugin/mod_nodog.cpp index 02cc1a70..958d2a49 100644 --- a/src/ulib/net/server/plugin/mod_nodog.cpp +++ b/src/ulib/net/server/plugin/mod_nodog.cpp @@ -1137,7 +1137,7 @@ int UNoDogPlugIn::handlerRequest() char policy; UFlatBuffer fb, vec; - fb.setRoot(*UClientImage_Base::body); + fb.setRoot(*UHTTP::body); fb.AsVector(vec); // $1 -> peer @@ -1209,7 +1209,7 @@ int UNoDogPlugIn::handlerRequest() uint32_t n, ip_peer; UFlatBuffer fb, vec; - fb.setRoot(*UClientImage_Base::body); + fb.setRoot(*UHTTP::body); fb.AsVector(vec); n = vec.GetSize(); diff --git a/src/ulib/net/server/plugin/mod_scgi.cpp b/src/ulib/net/server/plugin/mod_scgi.cpp index dfe6afa0..e0e5dd6c 100644 --- a/src/ulib/net/server/plugin/mod_scgi.cpp +++ b/src/ulib/net/server/plugin/mod_scgi.cpp @@ -175,7 +175,7 @@ int USCGIPlugIn::handlerRequest() request.snprintf(U_CONSTANT_TO_PARAM("%u:%v,"), environment.size(), environment.rep); - (void) request.append(*UClientImage_Base::body); + (void) request.append(*UHTTP::body); connection->prepareRequest(request); diff --git a/src/ulib/net/server/plugin/mod_shib/mod_shib.cpp b/src/ulib/net/server/plugin/mod_shib/mod_shib.cpp index 04d06606..2106eb44 100644 --- a/src/ulib/net/server/plugin/mod_shib/mod_shib.cpp +++ b/src/ulib/net/server/plugin/mod_shib/mod_shib.cpp @@ -654,8 +654,8 @@ int UShibPlugIn::handlerRequest() U_ASSERT(U_HTTP_CTYPE_STRNEQ("application/x-www-form-urlencoded")) UShibTarget::content_type = "application/x-www-form-urlencoded"; - UShibTarget::postdata_ptr = UClientImage_Base::body->data(); - UShibTarget::postdata_len = UClientImage_Base::body->size(); + UShibTarget::postdata_ptr = UHTTP::body->data(); + UShibTarget::postdata_len = UHTTP::body->size(); if (shib_handler()) mode = -1; else diff --git a/src/ulib/net/server/plugin/mod_soap.cpp b/src/ulib/net/server/plugin/mod_soap.cpp index 4539fba5..2458b66a 100644 --- a/src/ulib/net/server/plugin/mod_soap.cpp +++ b/src/ulib/net/server/plugin/mod_soap.cpp @@ -87,7 +87,7 @@ int USoapPlugIn::handlerRequest() bool bSendingFault; - UString body = soap_parser->processMessage(*UClientImage_Base::body, *URPCObject::dispatcher, bSendingFault), + UString body = soap_parser->processMessage(*UHTTP::body, *URPCObject::dispatcher, bSendingFault), method = soap_parser->getMethodName(); U_SRV_LOG_WITH_ADDR("method %V process %s for", method.rep, (bSendingFault ? "failed" : "passed")); diff --git a/src/ulib/net/server/plugin/mod_ssi.cpp b/src/ulib/net/server/plugin/mod_ssi.cpp index 715c568a..1dddb1eb 100644 --- a/src/ulib/net/server/plugin/mod_ssi.cpp +++ b/src/ulib/net/server/plugin/mod_ssi.cpp @@ -1048,7 +1048,7 @@ int USSIPlugIn::handlerRequest() } else { - U_INTERNAL_DUMP("UClientImage_Base::body(%u) = %V", UClientImage_Base::body->size(), UClientImage_Base::body->rep) + U_INTERNAL_DUMP("UHTTP::body(%u) = %V", UHTTP::body->size(), UHTTP::body->rep) U_ASSERT(UHTTP::isDataFromCache()) U_INTERNAL_ASSERT_POINTER(UHTTP::file_data->array) @@ -1061,8 +1061,8 @@ int USSIPlugIn::handlerRequest() (void) header->append(UHTTP::getDataFromCache(UHTTP::file_data->array, 1)); // NB: we must consider HTTP/2 *body = (UHTTP::isGETorHEAD() && - *UClientImage_Base::body - ? *UClientImage_Base::body + *UHTTP::body + ? *UHTTP::body : UHTTP::getBodyFromCache()); } diff --git a/src/ulib/net/server/plugin/mod_tsa.cpp b/src/ulib/net/server/plugin/mod_tsa.cpp index 4111d2d7..8416aa3f 100644 --- a/src/ulib/net/server/plugin/mod_tsa.cpp +++ b/src/ulib/net/server/plugin/mod_tsa.cpp @@ -92,7 +92,7 @@ int UTsaPlugIn::handlerRequest() UString body; - if (command->execute(UClientImage_Base::body, &body) == false) UHTTP::setInternalError(); + if (command->execute(UHTTP::body, &body) == false) UHTTP::setInternalError(); else { U_http_info.nResponseCode = HTTP_OK; diff --git a/src/ulib/net/server/plugin/python/mod_python.cpp b/src/ulib/net/server/plugin/python/mod_python.cpp index 853abf7f..0af570e8 100644 --- a/src/ulib/net/server/plugin/python/mod_python.cpp +++ b/src/ulib/net/server/plugin/python/mod_python.cpp @@ -154,7 +154,7 @@ extern U_EXPORT bool runPYTHON(); dict_set(py_environ, "wsgi.multithread", PyBool_FromLong(0)); dict_set(py_environ, "wsgi.multiprocess", PyBool_FromLong(UServer_Base::isPreForked())); - if (*UClientImage_Base::body) dict_set(py_environ, "userver.req.content", PyByteArray_FromStringAndSize(U_STRING_TO_PARAM(*UClientImage_Base::body))); + if (*UHTTP::body) dict_set(py_environ, "userver.req.content", PyByteArray_FromStringAndSize(U_STRING_TO_PARAM(*UHTTP::body))); // call python diff --git a/src/ulib/net/server/plugin/ruby/mod_ruby.cpp b/src/ulib/net/server/plugin/ruby/mod_ruby.cpp index 2e59f199..e9c86d62 100644 --- a/src/ulib/net/server/plugin/ruby/mod_ruby.cpp +++ b/src/ulib/net/server/plugin/ruby/mod_ruby.cpp @@ -77,8 +77,8 @@ static VALUE URUBY_io_rewind(VALUE obj, VALUE args) { U_TRACE(0, "URUBY_io_rewind(%llu,%llu)", obj, args) - post_readline_pos = UClientImage_Base::body->data(); - post_readline_watermark = post_readline_pos + UClientImage_Base::body->size(); + post_readline_pos = UHTTP::body->data(); + post_readline_watermark = post_readline_pos + UHTTP::body->size(); U_INTERNAL_DUMP("post_readline_pos = %p post_readline_watermark = %p", post_readline_pos, post_readline_watermark) diff --git a/src/ulib/net/server/plugin/usp/db.usp b/src/ulib/net/server/plugin/usp/db.usp index 8254e1b9..40ad6246 100644 --- a/src/ulib/net/server/plugin/usp/db.usp +++ b/src/ulib/net/server/plugin/usp/db.usp @@ -9,9 +9,6 @@ static void usp_fork_db() { World::handlerForkSql(); } --> - - diff --git a/src/ulib/net/server/plugin/usp/equery.usp b/src/ulib/net/server/plugin/usp/equery.usp index e758466c..f05bcfbf 100644 --- a/src/ulib/net/server/plugin/usp/equery.usp +++ b/src/ulib/net/server/plugin/usp/equery.usp @@ -9,9 +9,6 @@ static void usp_fork_equery() { WorldNoSql::handlerForkElasticSearch(); } --> - diff --git a/src/ulib/net/server/plugin/usp/eupdate.usp b/src/ulib/net/server/plugin/usp/eupdate.usp index 62902904..483fd82c 100644 --- a/src/ulib/net/server/plugin/usp/eupdate.usp +++ b/src/ulib/net/server/plugin/usp/eupdate.usp @@ -23,9 +23,6 @@ static void usp_fork_eupdate() --> - diff --git a/src/ulib/net/server/plugin/usp/fortune.usp b/src/ulib/net/server/plugin/usp/fortune.usp index 41f5ee12..d1ade24f 100644 --- a/src/ulib/net/server/plugin/usp/fortune.usp +++ b/src/ulib/net/server/plugin/usp/fortune.usp @@ -72,9 +72,6 @@ static void usp_fork_fortune() --> - diff --git a/src/ulib/net/server/plugin/usp/mdb.usp b/src/ulib/net/server/plugin/usp/mdb.usp index 2e16c59f..ffc16cd5 100644 --- a/src/ulib/net/server/plugin/usp/mdb.usp +++ b/src/ulib/net/server/plugin/usp/mdb.usp @@ -9,9 +9,6 @@ static void usp_fork_mdb() { WorldNoSql::handlerForkMongoDB(); } --> - diff --git a/src/ulib/net/server/plugin/usp/mfortune.usp b/src/ulib/net/server/plugin/usp/mfortune.usp index 387c279f..7900caaa 100644 --- a/src/ulib/net/server/plugin/usp/mfortune.usp +++ b/src/ulib/net/server/plugin/usp/mfortune.usp @@ -9,9 +9,6 @@ static void usp_fork_mfortune() { FortuneNoSql::handlerForkMongoDB(); } --> - diff --git a/src/ulib/net/server/plugin/usp/mquery.usp b/src/ulib/net/server/plugin/usp/mquery.usp index b3658537..4c507a18 100644 --- a/src/ulib/net/server/plugin/usp/mquery.usp +++ b/src/ulib/net/server/plugin/usp/mquery.usp @@ -9,9 +9,6 @@ static void usp_fork_mquery() { WorldNoSql::handlerForkMongoDB(); } --> - diff --git a/src/ulib/net/server/plugin/usp/mupdate.usp b/src/ulib/net/server/plugin/usp/mupdate.usp index 1200318b..4fec5c32 100644 --- a/src/ulib/net/server/plugin/usp/mupdate.usp +++ b/src/ulib/net/server/plugin/usp/mupdate.usp @@ -9,9 +9,6 @@ static void usp_fork_mupdate() { WorldNoSql::handlerForkMongoDB(); } --> - diff --git a/src/ulib/net/server/plugin/usp/query.usp b/src/ulib/net/server/plugin/usp/query.usp index 852f3769..98d56313 100644 --- a/src/ulib/net/server/plugin/usp/query.usp +++ b/src/ulib/net/server/plugin/usp/query.usp @@ -9,9 +9,6 @@ static void usp_fork_query() { World::handlerForkSql(); } --> - - diff --git a/src/ulib/net/server/plugin/usp/rfortune.usp b/src/ulib/net/server/plugin/usp/rfortune.usp index c1fcc546..51f89828 100644 --- a/src/ulib/net/server/plugin/usp/rfortune.usp +++ b/src/ulib/net/server/plugin/usp/rfortune.usp @@ -9,9 +9,6 @@ static void usp_fork_rfortune() { FortuneNoSql::handlerForkREDIS(); } --> - diff --git a/src/ulib/net/server/plugin/usp/rquery.usp b/src/ulib/net/server/plugin/usp/rquery.usp index d65aaa46..7173c2db 100644 --- a/src/ulib/net/server/plugin/usp/rquery.usp +++ b/src/ulib/net/server/plugin/usp/rquery.usp @@ -9,9 +9,6 @@ static void usp_fork_rquery() { WorldNoSql::handlerForkREDIS(); } --> - diff --git a/src/ulib/net/server/plugin/usp/rupdate.usp b/src/ulib/net/server/plugin/usp/rupdate.usp index c1dbfdbd..de4a0e85 100644 --- a/src/ulib/net/server/plugin/usp/rupdate.usp +++ b/src/ulib/net/server/plugin/usp/rupdate.usp @@ -9,9 +9,6 @@ static void usp_fork_rupdate() { WorldNoSql::handlerForkREDIS(); } --> - diff --git a/src/ulib/net/server/plugin/usp/update.usp b/src/ulib/net/server/plugin/usp/update.usp index 6c8289cd..563dc134 100644 --- a/src/ulib/net/server/plugin/usp/update.usp +++ b/src/ulib/net/server/plugin/usp/update.usp @@ -32,9 +32,6 @@ static void usp_fork_update() --> - - - diff --git a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/equery.usp b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/equery.usp index e758466c..f05bcfbf 100644 --- a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/equery.usp +++ b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/equery.usp @@ -9,9 +9,6 @@ static void usp_fork_equery() { WorldNoSql::handlerForkElasticSearch(); } --> - diff --git a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/eupdate.usp b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/eupdate.usp index 62902904..483fd82c 100644 --- a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/eupdate.usp +++ b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/eupdate.usp @@ -23,9 +23,6 @@ static void usp_fork_eupdate() --> - diff --git a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/fortune.usp b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/fortune.usp index 41f5ee12..d1ade24f 100644 --- a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/fortune.usp +++ b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/fortune.usp @@ -72,9 +72,6 @@ static void usp_fork_fortune() --> - diff --git a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/mdb.usp b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/mdb.usp index 2e16c59f..ffc16cd5 100644 --- a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/mdb.usp +++ b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/mdb.usp @@ -9,9 +9,6 @@ static void usp_fork_mdb() { WorldNoSql::handlerForkMongoDB(); } --> - diff --git a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/mfortune.usp b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/mfortune.usp index 387c279f..7900caaa 100644 --- a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/mfortune.usp +++ b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/mfortune.usp @@ -9,9 +9,6 @@ static void usp_fork_mfortune() { FortuneNoSql::handlerForkMongoDB(); } --> - diff --git a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/mquery.usp b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/mquery.usp index b3658537..4c507a18 100644 --- a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/mquery.usp +++ b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/mquery.usp @@ -9,9 +9,6 @@ static void usp_fork_mquery() { WorldNoSql::handlerForkMongoDB(); } --> - diff --git a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/mupdate.usp b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/mupdate.usp index 1200318b..4fec5c32 100644 --- a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/mupdate.usp +++ b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/mupdate.usp @@ -9,9 +9,6 @@ static void usp_fork_mupdate() { WorldNoSql::handlerForkMongoDB(); } --> - diff --git a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/query.usp b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/query.usp index 852f3769..98d56313 100644 --- a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/query.usp +++ b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/query.usp @@ -9,9 +9,6 @@ static void usp_fork_query() { World::handlerForkSql(); } --> - - diff --git a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/rfortune.usp b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/rfortune.usp index c1fcc546..51f89828 100644 --- a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/rfortune.usp +++ b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/rfortune.usp @@ -9,9 +9,6 @@ static void usp_fork_rfortune() { FortuneNoSql::handlerForkREDIS(); } --> - diff --git a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/rquery.usp b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/rquery.usp index d65aaa46..7173c2db 100644 --- a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/rquery.usp +++ b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/rquery.usp @@ -9,9 +9,6 @@ static void usp_fork_rquery() { WorldNoSql::handlerForkREDIS(); } --> - diff --git a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/rupdate.usp b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/rupdate.usp index c1dbfdbd..de4a0e85 100644 --- a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/rupdate.usp +++ b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/rupdate.usp @@ -9,9 +9,6 @@ static void usp_fork_rupdate() { WorldNoSql::handlerForkREDIS(); } --> - diff --git a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/update.usp b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/update.usp index 6c8289cd..563dc134 100644 --- a/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/update.usp +++ b/tests/examples/benchmark/FrameworkBenchmarks/ULib/src/update.usp @@ -32,9 +32,6 @@ static void usp_fork_update() --> -