ShiVa3D
Rexeiving timeout warning for xml.send and xml.receive [SOLVED]
Windows DX9/OpenGL 2 Standalone AppsRexeiving timeout warning for xml.send and xml.receive
by jharr100 » 14 Dec 2010, 13:49
I am connecting to a java server for sending and receiving xml and no matter what, once the information is sent via a socket Shiva keeps giving me a time warning and I receive a 0 for the xml send and receive status. Does anyone know why?
- jharr100
- Fresh Boarder

- Posts: 17
Re: Rexeiving timeout warning for xml.send and xml.receive
by Yopia » 14 Dec 2010, 14:49
hi,
xml.send and xml.receive use the HTTP protocol to make the transaction.
Does your java server use the HTTP protocol ?
xml.send and xml.receive use the HTTP protocol to make the transaction.
Does your java server use the HTTP protocol ?
-

Yopia - Platinum Boarder

- Posts: 625
Re: Rexeiving timeout warning for xml.send and xml.receive
by jharr100 » 14 Dec 2010, 15:50
No, it doesn't. I guess that's why. I guess I will implement that or use another method. Thanks.
- jharr100
- Fresh Boarder

- Posts: 17
Re: Rexeiving timeout warning for xml.send and xml.receive
by Yopia » 14 Dec 2010, 16:54
You just have to write http headers before sending the xml.
For xml, we need at least the 200 OK and the Content-Length fields.
For xml, we need at least the 200 OK and the Content-Length fields.
-

Yopia - Platinum Boarder

- Posts: 625
Re: Rexeiving timeout warning for xml.send and xml.receive
by jharr100 » 14 Dec 2010, 19:35
OK. I was also thinking about using the Stone3D web server instead of the java server or implementing my own web server. Thanks again.
- jharr100
- Fresh Boarder

- Posts: 17
Re: Rexeiving timeout warning for xml.send and xml.receive
by jharr100 » 15 Dec 2010, 17:42
Content-Type: application/x-www-form-urlencoded
Connection: close
Referer: localhost
Content-Length: 69
STContent=
<Request>
<Object>1</Object>
</Request>
HTTP/1.0 200 OK
this is what I send back on the java side and still receive a timeout.
Connection: close
Referer: localhost
Content-Length: 69
STContent=
<Request>
<Object>1</Object>
</Request>
HTTP/1.0 200 OK
this is what I send back on the java side and still receive a timeout.
- jharr100
- Fresh Boarder

- Posts: 17
Re: Rexeiving timeout warning for xml.send and xml.receive
by jharr100 » 15 Dec 2010, 19:34
Sorry I had to repost the msg didnt make sense:
This is what Shiva sent to my Java server
POST / HTTP/1.0
Host: localhost
User-Agent: Ston3D WebPlayer
Content-Type: application/x-www-form-urlencoded
Connection: close
Referer: localhost
Content-Length: 69
STContent=
<Request>
<Object>1</Object>
</Request>
My java server sent this back to shiva:
HTTP/1.0 200 OK
ShiVa still gives a timeout...am I doing something wrong?
This is what Shiva sent to my Java server
POST / HTTP/1.0
Host: localhost
User-Agent: Ston3D WebPlayer
Content-Type: application/x-www-form-urlencoded
Connection: close
Referer: localhost
Content-Length: 69
STContent=
<Request>
<Object>1</Object>
</Request>
My java server sent this back to shiva:
HTTP/1.0 200 OK
ShiVa still gives a timeout...am I doing something wrong?
- jharr100
- Fresh Boarder

- Posts: 17
Re: Rexeiving timeout warning for xml.send and xml.receive
by Shini » 17 Dec 2010, 09:53
same here... we keep getting random timeouts for no reasons!
Edit: these warnings disappear if we disable the gzip compression of our server.
Edit: these warnings disappear if we disable the gzip compression of our server.
-

Shini - Gold Boarder

- Posts: 269
Re: Rexeiving timeout warning for xml.send and xml.receive [SOLVED]
by jharr100 » 06 Jan 2011, 20:10
We solved our problem by sending back HTTP 200 OK response back to Shiva and the timeout was caused by the Java server continuing to read after Shiva had already finished sending. We change it by calling readBytes() instead of readLine() and stopped when the double carriage return line feed was read. 
- jharr100
- Fresh Boarder

- Posts: 17
9 posts
• Page 1 of 1