From 4a33724b91edabce231e699464fc775db1bc547c Mon Sep 17 00:00:00 2001 From: idealvin Date: Mon, 15 Nov 2021 18:43:16 +0800 Subject: [PATCH] add some poetry --- src/so/http.cc | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/so/http.cc b/src/so/http.cc index 0940390e3..555c55dc6 100644 --- a/src/so/http.cc +++ b/src/so/http.cc @@ -749,6 +749,15 @@ void ServerImpl::on_connection(tcp::Connection conn) { auto& preq = *(http_req_t**) &req; auto& pres = *(http_res_t**) &res; + /** + * 夜半独饮 Drink alone at midnight + * 人迷代码中, Lost in the code, + * 坑深不知处。 where am I? + * god来相助, God comes to help, + * bug挂上树。 bugs hang on the tree. + */ + god::bless_no_bugs(); + r = atomic_inc(&_conn_num); DLOG << "http conn num: " << r; @@ -815,7 +824,18 @@ void ServerImpl::on_connection(tcp::Connection conn) { } } else { /* chunked Transfer-Encoding */ - god::bless_no_bugs(); + /** + * Bug, Bug, Bug, Bug, + * 你真了不得, your birds are not available. + * 五行大山压不住你, Five lines of mountains can't hold you down, + * 蹦出个孙行者。 jumps out a segmentation fault. + * + * 纵你有广大神通, So powerful you are, + * 难逃如来佛掌中。 you can't escape from the palm of the Buddha. + * 六字真言显威灵, The six syllable Mantra put in the code, + * 从此bug去无踪。 nowhere to find a bug any more. + */ + god::om_mani_padme_hum(); bool expect_100_continue = strcmp(preq->header("Expect"), "100-continue") == 0; size_t x, o, i, n = 0;