[SERVER-148] when getting message header, handle case where get <4 bytes Created: 11/Jul/09 Updated: 15/Jan/16 Resolved: 15/Jan/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Networking |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Eliot Horowitz (Inactive) | Assignee: | Adam Midvidy |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Comments |
| Comment by Andrew Morrow (Inactive) [ 15/Jan/16 ] | |||||||||||||
|
Sounds like you can resolve it. | |||||||||||||
| Comment by Adam Midvidy [ 15/Jan/16 ] | |||||||||||||
|
nothing exciting, just see a typical "end connection" message in the mongod log. | |||||||||||||
| Comment by Andrew Morrow (Inactive) [ 15/Jan/16 ] | |||||||||||||
|
What happens if you terminate the connection after two bytes? | |||||||||||||
| Comment by Adam Midvidy [ 15/Jan/16 ] | |||||||||||||
|
So basically, not sure there is any work to do here at the moment. | |||||||||||||
| Comment by Adam Midvidy [ 15/Jan/16 ] | |||||||||||||
|
I think we will just block until enough bytes are read, from my reading of Socket::recv. I tried it out for fun.
then in another shell
The server accepts the connection, but the accepting thread just blocks.
If i type in a few more characters in telnet I eventually get an error:
Doing it again with ssl enabled
|