On the question of how to get request-id in swoole?

A unique id: requestid is generated after receiving a request; this id is recorded as a prefix when logging later. Later, by locating the problem, you can easily get all the logs of this request through requestid .

in fpm run mode, you can save requestid through global variables or global objects.

under swoole , the form of global variables is overridden by subsequent requests because the mode that supports asynchronous protocols is supported.

do you have any good plans?

it is found that the fd of each request is unique. Apart from the callback function, I wonder if there is a way to get $fd ?

without taking away layers of arguments.
May.06,2021

swoole_table https://wiki.swoole.com/wiki/. can try using

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34898-2bf35.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34898-2bf35.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?