Lets try to do some dirty way of coding to produce close_wait!
Check out my server code! I am opening up new socket and waiting for request from client!
Once request is received, writing out a message to client and closing the connection then and there!
Server Code
In Client code I am creating new connection with Server and puting the clinet into sleep mode with out closing the connection.
Client Code
This will results as bellow!
Check out my server code! I am opening up new socket and waiting for request from client!
Once request is received, writing out a message to client and closing the connection then and there!
Server Code
In Client code I am creating new connection with Server and puting the clinet into sleep mode with out closing the connection.
Client Code
This will results as bellow!
No comments:
Post a Comment