I’m getting no content received error despite reading line in concurrent block. Let me know what is going wrong here.
Hey @ravivarmalearner, could you check if you’ve committed and pushed the latest changes?
Looks like ClientHandler
is currently empty on our server:
These two files are modified but haven’t been staged for commit yet:
To include them in your next commit, run:
git add .
Let me know if it works or not.
Yeah done that. But still facing same issue.
@ravivarmalearner Looks like the issue is with this line:
new ClientHandler(serverSocket.accept()).run()
This runs the handler synchronously on the main thread, which blocks further connections.
To run it asynchronously, you should start a new thread:
new Thread(new ClientHandler(serverSocket.accept())).start();
Let me know if you’d like further clarification!
Thank you.. Its working now.
1 Like
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.