-
Notifications
You must be signed in to change notification settings - Fork 297
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
LiteServ logs disconnect warnings #973
Comments
Can you reproduce this on the release/1.2 branch? At this point the 1.1.1 sourcebase is pretty old. |
Wait, I don't think I understand the steps to reproduce. The warning is from CBLHTTPConnection, which is part of the listener — it handles an incoming REST call to LiteServ. But the directions above refer to LiteServ pulling from SG, which isn't going to involve the listener at all. So, what is connecting to LiteServ to trigger a CBLHTTPConnection? |
ah my bad, Please try the following steps. This should reproduce the issue:
|
Can't reproduce this — I've used both curl and httpie to send the PUT request, and waited 5 minutes afterwards, but got no warnings. Can you describe exactly what you did in step 2? |
Reruning the above scenario with CURL did not generate the warning. However the warnings appear when using liteserv with nodejs or using POSTMAN http client. |
This happens if the client uses a keep-alive connection, so the socket stays open after the first request, but then doesn't send any subsequent request. After a few minutes CocoaHTTPServer times out the socket and closes it. This is a normal thing to do, so I should suppress the warning (in my code.) |
Fixed on branch release/1.2. |
01:28:38.148‖ WARNING: CBLHTTPConnection: Client disconnected: Error Domain=GCDAsyncSocketErrorDomain Code=4 "Read operation timed out" UserInfo=0x7f8cc2b5b7b0 {NSLocalizedDescription=Read operation timed out}
Found in release:1.1.1
Steps:
The text was updated successfully, but these errors were encountered: