Help - Search - Members - Calendar
Full Version: Writing/Reading from streams...
Skype Community > English > Development, Betas and Skype Garage > Skype Public API
tas246_
Hi,

I seem to be having an issue when i am writing and reading from streams... it's kind of confusing to explain, but i'll do my best...

If i write to a stream, the other computer receives it just fine.

If i write to the stream, and have the receiving end echo the text back by writing to the stream it received on, it works fine.

If i am writing multiple things consecutively. and the receiving end echos the same text back to the sender, sometimes skype stops responding.

It is wierd, the machine that "crashed" still looks like it is online, but it is not able to send or receive messages. A few minutes later, all other skype users will see the machine as being offline, but that machine will still show everyone as online.

The wierd thing is, if i right click on the skype icon in the toolbar and hit quit, there is still an instance of skype.exe running.

Is there some underlying issue with the API that does not allow writing/reading on the same stream at the same time (different threads)?

Thanks

Tom
Alex Rosenbaum
Hi Tom,

I guess you are talking about the APP2APP STREAMS support in the Skype API.
It is always good to mention this for anyone else that wants to refer to your post in this forum.

I played around with DATAGRAMs and had no problems there.
I did not work with STREAMs yet so I can't help you much.

But this does sound like a bug in Skype.
On such events, Skype behavior should be such that it can stop working with that application via its API temporary. But it should not crash/fail/freeze/stop working for the user on any such event.
bertouta
Hi Tom, thanks Alex,

It seems to be a clearly bug in the API, but have you got some code or result you should copy in your post ?

Then I can reproduce the same scenario as yours and can give materials to bug trackers.

Thanks to keep in touch,

Antoine
tas246_
You are right, I was using the App2App streams part of the API.

My code sample is here:

http://www.tomschindler.net/stresstest.zip

If you run listen.java on one machine, and start.java on another, you will see them talking back and forth-- i have it set to start 20 writes of data, and receive back responses from the listening computer.

I am using the latest version of the Skype 2.0 API for java....

http://forum.skype.com/viewtopic.php?t=44387

I have already contacted the author and he is looking into it to be sure it is not a bug in his code...

Thanks

Tom
bertouta
Ho Tom,

Thanks for your enclosed links, I will track your issue and come back to you.

Antoine
bertouta
Bug is fixed and will be in the next Skype public release (after 2.0.0.97)

Thanks to all of you

Antoine
tas246_
QUOTE(bertouta)
Bug is fixed and will be in the next Skype public release (after 2.0.0.97)

Thanks to all of you

Antoine



Thanks Antoine!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.