yasukata / tinyhttpd-lwip-dpdk

A tiny HTTP server built on lwIP and DPDK
Apache License 2.0
33 stars 7 forks source link

HTTP client #6

Open moscovium115 opened 5 months ago

moscovium115 commented 5 months ago

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

yasukata commented 5 months ago

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.