Skip to content

Commit

Permalink
add some poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
idealvin committed Nov 15, 2021
1 parent 3fd2260 commit 4a33724
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/so/http.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4a33724

Please sign in to comment.