discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: writeData: does not send out data for 5-10 minutes


From: Richard Frith-Macdonald
Subject: Re: writeData: does not send out data for 5-10 minutes
Date: Tue, 20 Sep 2005 14:36:39 +0100


On 20 Sep 2005, at 13:12, Andreas Höschler wrote:



That's not it. Of course I have a run loop. The weird thing is, this works in 9 cases, and in one case it hangs for a while (a few minutes) before I get a response. I don't know exactly whether it hangs on the sending or the receiving side. Now that you say, data is sent immediately, I guess it is the fault of NSFileHandle- readDataInBackground on the receiver side (waiting for more data or a timeout or whatever). Note, I encounter this on Solaris. This is no show-stopper for me, it's just a liitle weird (annoying).



I've used NSFileHandle for socket I/O on solaris 8 and 9 quite a bit ... and not noticed any problems. I think it would be good to use NSLog() to write stuff to stderr to tell you exactly what it does in GSFileHandle.m, and when it does it ... for instance, it would be good to confirm the exact timing of the sequence ...

client initiates connect
server accepts incoming connection
client gets notification that connection has been made, and starts write,
server reads data
client write completes
notification of read completion in server is handled.








reply via email to

[Prev in Thread] Current Thread [Next in Thread]