-
Notifications
You must be signed in to change notification settings - Fork 71
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
Unable to set socket option: Invalid argument #345
Comments
After some debugging I've kind of figured out what is the problem. The problem is this line [1] in I've found a bug report for zeromq [2] which seems to be the same issue, that states that the call to set the socket option can fail if the remote end has closed/reset the socket. I believe the solution is to try to reconnect. That other bug has been fixed here [3]. [1] https://github.com/dlang/phobos/blob/22799fffa0f279d62574e3ea20efccaf5c0b1f05/std/socket.d#L2602 |
Since the problem is on the server side, reconnecting is not meaningful - we are only accepting connections from the client. So, the question is why would the client drop the connection immediately after connecting. Perhaps the IDE is killing the client process? Can you still reproduce this problem, and if so, could you post complete steps to reproduce it? |
Just compiled with git master at 144cc4e:
This is run in a separate terminal:
|
Yes, that doesn't make any sense.
No IDE involved, just executing the client manually in the terminal. |
I've been using DCD for a while now and it's been working perfectly fine. Suddenly it stopped working. When I start the server and then call the client to add an import path I get this error:
I compiled DCD from source (1037406), using DMD v2.071.1. I'm running on OS X. It seems like using TCP socket instead of Unix socket works.
The text was updated successfully, but these errors were encountered: