Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support query /etc/hosts #4341

Merged
merged 2 commits into from
Jul 29, 2021
Merged

Support query /etc/hosts #4341

merged 2 commits into from
Jul 29, 2021

Conversation

zmyWL
Copy link
Contributor

@zmyWL zmyWL commented Jul 28, 2021

No description provided.

@codecov
Copy link

codecov bot commented Jul 28, 2021

Codecov Report

Merging #4341 (cb6dd79) into master (a034cbc) will increase coverage by 0.20%.
The diff coverage is 81.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4341      +/-   ##
==========================================
+ Coverage   50.67%   50.87%   +0.20%     
==========================================
  Files          72       72              
  Lines       14516    14611      +95     
==========================================
+ Hits         7356     7434      +78     
- Misses       7160     7177      +17     
Impacted Files Coverage Δ
src/network/dns.cc 85.36% <81.25%> (-1.76%) ⬇️
src/os/msg_queue.cc 57.62% <0.00%> (-3.39%) ⬇️
src/os/process_pool.cc 57.43% <0.00%> (-0.46%) ⬇️
src/os/async_thread.cc 69.73% <0.00%> (+0.87%) ⬆️
src/protocol/base.cc 63.15% <0.00%> (+1.97%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a034cbc...cb6dd79. Read the comment docs.

@matyhtf matyhtf merged commit 4b9839d into swoole:master Jul 29, 2021
size_t len;

if (*buf == nullptr) {
*buf = (char *) malloc(128);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

although there maybe space or comments, domain name and ip has known max size. is it possible to avoid malloc?

@zmyWL zmyWL deleted the support-dns-hosts branch August 3, 2021 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants