-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Fix #2034 #2048
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
Conversation
bool process_client_socket( | ||
socket_t sock, time_t read_timeout_sec, time_t read_timeout_usec, | ||
time_t write_timeout_sec, time_t write_timeout_usec, | ||
time_t global_timeout_msec, | ||
std::chrono::time_point<std::chrono::steady_clock> start_time, | ||
std::function<bool(Stream &)> callback); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it make sense at some point to move those/some parameters into a Session
or SocketConfig
struct? It's quite unwieldy already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the code can be refactored later.
Do you want to see my solution to this at all? I'll need another day or two to get it ready. Edit: Never mind, canceling doesn't require event pipes and is already implemented. |
Currently, I am not very much interested in it unless it is absolutely needed. But if there are things that improve the httplib code base, could you split your change into several smaller pull requests? I usually don't accept a big pull request, because I don't have time to understand such. As for the DNS issue, could you take a look at #1601? If you have a multi platform solution, could you send it as a pull request? Thanks! |
I've thought more about it and my code no longer adds anything of value to the core of httplib.
Well, I hope you might accept a larger PR (WebSockets) as part of
Unfortunately, I was only interested in the issue as a vehicle to get WebSockets-related code included/reviewed. Sorry! I use httplib mostly for IPC using UNIX domain sockets and right now WebSockets for interacting locally with Chrome DevTools. |
No description provided.