chkuendig / cspoker

Automatically exported from code.google.com/p/cspoker
0 stars 0 forks source link

disconnected after sending crossdomain xml file? (its also sending the open source license with the crossdomain text) #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. start server remotely.
2. send a <policy-file-request/>
3. receive a cross domain xml file back.
4. flex client disconnects right after.  i think there is an error in the
cross domain xml that it sends.  it seems to send the open source license
with it as well:  

#
<!--
#

#
    This program is free software; you can redistribute it and/or modify
#
    it under the terms of the GNU General Public License as published by
#
    the Free Software Foundation; either version 2 of the License, or
#
    (at your option) any later version.
#

#
    This program is distributed in the hope that it will be useful,
#
    but WITHOUT ANY WARRANTY; without even the implied warranty of
#
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#
    GNU General Public License for more details.
#

#
    You should have received a copy of the GNU General Public License
#
    along with this program; if not, write to the Free Software
#
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#

#
-->
#

#
<cross-domain-policy>
#
        <allow-access-from domain="*" to-ports="*"/>
#
</cross-domain-policy>

even though the top is commented out xml style, I think it could still be
causing the error or it could be a problem with my flex client.  please
advise.  

Check out the pastebin: 

http://cspoker.pastebin.com/mec94c02

Original issue reported on code.google.com by zkin...@gmail.com on 15 Dec 2008 at 11:50

GoogleCodeExporter commented 9 years ago
Also note:  that after i get "Exception reading from Socket, closing socket 
error",
and try to reconnect, it won't show any more output on the server end at all 
until
the server-xml is restarted

Original comment by zkin...@gmail.com on 16 Dec 2008 at 12:17

GoogleCodeExporter commented 9 years ago
Have you tried removing the license comment from the crossdomain.xml file? It's 
in
the resource directoy.

Original comment by guy...@gmail.com on 16 Dec 2008 at 12:29

GoogleCodeExporter commented 9 years ago
yes, i have removed the license comment from crossdomain.xml

i am still getting a similar problem.  anybody else notice this?  slawek?  

I made a dumbed down flex client and it still gets the same problem with this 
server.
 I've been working with the java too and been studying some examples offa google and
books, but still can't figure out a reason on the client/server end it could be
disconnecting like that.

please advice, esp anybody with as3 exp.

Original comment by zkin...@gmail.com on 16 Dec 2008 at 10:39

GoogleCodeExporter commented 9 years ago
I'd love to help but I'm not sure if I can get flex builder to work on Linux.
Maybe if you create a flash file that will connect to localhost, I can debug it 
here?

Original comment by guy...@gmail.com on 18 Dec 2008 at 11:37

GoogleCodeExporter commented 9 years ago
fixed in r1257

Original comment by guy...@gmail.com on 12 Jan 2009 at 12:48