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

你要发就发1999年的源码别乱改好不好 #30

Open
huanghaoa opened this issue Jun 8, 2018 · 7 comments
Open

你要发就发1999年的源码别乱改好不好 #30

huanghaoa opened this issue Jun 8, 2018 · 7 comments

Comments

@huanghaoa
Copy link

在execute_cgi()函数中,你在fork()之后 调用sprintf(buf, "HTTP/1.0 200 OK\r\n");send(client, buf, strlen(buf), 0);这会导致这个信息发了两次,发代码之前都不用一下的吗?

@aktk47
Copy link

aktk47 commented Apr 22, 2020

也发现了

@vector1694
Copy link

我也发现了

@tripract
Copy link

tripract commented Aug 26, 2021

我看了源码后也有疑问的,但是 https://sourceforge.net/projects/tinyhttpd/ 这里也是这样写的,估计要自己运行一下才知道有没有问题

@Cloudprogram
Copy link

我看了源码后也有疑问的,但是 https://sourceforge.net/projects/tinyhttpd/ 这里也是这样写的,估计要自己运行一下才知道有没有问题

这个源代码是Java写的啊!

@Liusandian
Copy link

Liusandian commented Sep 19, 2023 via email

@tripract
Copy link

我看了源码后也有疑问的,但是 https://sourceforge.net/projects/tinyhttpd/ 这里也是这样写的,估计要自己运行一下才知道有没有问题

这个源代码是Java写的啊!

https://sourceforge.net/projects/tinyhttpd/files/tinyhttpd%20source/tinyhttpd%200.1.0/
这不是C写的吗

@Cloudprogram
Copy link

我看了源码后也有疑问的,但是 https://sourceforge.net/projects/tinyhttpd/ 这里也是这样写的,估计要自己运行一下才知道有没有问题

这个源代码是Java写的啊!

https://sourceforge.net/projects/tinyhttpd/files/tinyhttpd%20source/tinyhttpd%200.1.0/ 这不是C写的吗

A mirror for tinyhttpd(Tinyhttpd非官方镜像,Fork自sourceForge,仅供学习)
我说的是他自己的README.md中说的链接

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

No branches or pull requests

6 participants