Resource Temporarily unavailable error with tcp sockets but fine with telnet

Asked by Aarush Gupta

I am getting errno 11(resource temporarily unavailable), when I use recv()
My recv() is in a continuos loop and it keeps getting this error code.
But when I close my socket and open the same IP through the linux command line telnet application, the data that I was supposed to get with recv() is flushed out on the screen as soon as telnet opens the connection.
I have tried using select() also which gives same kind of behavior.
As I understand telnet also uses recv() call under the hood, so what am I missing that I cannot recv().

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu netkit-telnet Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.