flouthoc / envelop.c

:ocean: Thread-less, event-loop based tiny http-server from scratch using epoll. Learning Purpose.
MIT License
83 stars 47 forks source link

Replace posix close with shutdown #2

Closed flouthoc closed 5 years ago

tpiekarski commented 5 years ago

Just to be sure, I'd like do ask: Do you mean to use shutdown for closing the connection at lines at 452 and 456? When yes, so I would like to offer a PR and get a little bit into C development tonight :)

flouthoc commented 5 years ago

@tpiekarski Sure !

flouthoc commented 5 years ago

@tpiekarski Test by hitting 127.0.0.1:3000/hello.

tpiekarski commented 5 years ago

Nice getting a little bit back to C and into epoll. PR is up and hit 127.0.0.1:3000/hello multiple times for testing :)