tinyhttpd-lwip-dpdk icon indicating copy to clipboard operation
tinyhttpd-lwip-dpdk copied to clipboard

HTTP client

Open moscovium115 opened this issue 10 months ago • 1 comments

Hello Developer,

First of all, amazing library it looks very impressive! I was wondering if you have a HTTP client that can send GET requests using DPDK. I'm asking this since you already have a HTTP server.

Thanks in advance

moscovium115 avatar Apr 24 '24 13:04 moscovium115

Thank you for your message.

I had previously added the client mode (https://github.com/yasukata/tinyhttpd-lwip-dpdk/issues/3), but I found it does not work for getting data from nginx, so, made changes in the latest commits (https://github.com/yasukata/tinyhttpd-lwip-dpdk/commit/7df3b9952911404fe99a60346e9089c4415b4bec).

Afterward, I could use this (with the command shown in https://github.com/yasukata/tinyhttpd-lwip-dpdk/issues/3) to fetch data from nginx and h2o; for the nginx case, I needed to add keepalive_requests 2147483647 (a sufficiently large number) to nginx.conf because nginx closes a keep-alive TCP connection after 1000 of message exchanges by default.

Please note that the HTTP parser of this implementation is very naive and may not always work properly.

Thank you very much for your interest.

yasukata avatar Apr 25 '24 07:04 yasukata