Error after a few hours when using Apache as a proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dolittle
    New Member
    • Sep 2007
    • 54

    Error after a few hours when using Apache as a proxy

    Hi,

    I`m using Apache as a proxy using ProxyPass (I didn`t set ProxyTimeout),
    I have two test clients sending and receiving xml messages using xmlhttprequest to a jeti server through the Apache proxy server.

    I sometime get an error in the Apache logs without being able to reproduce it.
    The error is:
    [
    Code:
    Sat Oct 06 14:46:51 2007] [error] (OS 10060)A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.  : proxy: prefetch request body failed to 127.0.0.1:8080 (localhost) from 173.129.343.565 ()
    [Sat Oct 06 14:46:51 2007] [error] [client 173.129.343.565 ] Handler for proxy-server returned invalid result code 730060, referer: http://www.example.com/test.html
    Can someone explain me the error?

    Thanks
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Originally posted by dolittle
    Hi,

    I`m using Apache as a proxy using ProxyPass (I didn`t set ProxyTimeout),
    I have two test clients sending and receiving xml messages using xmlhttprequest to a jeti server through the Apache proxy server.

    I sometime get an error in the Apache logs without being able to reproduce it.
    The error is:
    [
    Code:
    Sat Oct 06 14:46:51 2007] [error] (OS 10060)A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.  : proxy: prefetch request body failed to 127.0.0.1:8080 (localhost) from 173.129.343.565 ()
    [Sat Oct 06 14:46:51 2007] [error] [client 173.129.343.565 ] Handler for proxy-server returned invalid result code 730060, referer: http://www.example.com/test.html
    Can someone explain me the error?

    Thanks
    Hi dolittle,
    Could you give a little more information on the system? Describe in as much detail as possible the arrangement of servers and clients, what services/tools you are using, and what you are trying to accomplish, as well as any other information you think would be useful (ports, SSL, etc...)
    Thanks,
    Motoma

    Comment

    • dolittle
      New Member
      • Sep 2007
      • 54

      #3
      Hi dolittle,
      Could you give a little more information on the system? Describe in as much detail as possible the arrangement of servers and clients, what services/tools you are using, and what you are trying to accomplish, as well as any other information you think would be useful (ports, SSL, etc...)
      Thanks,
      Motoma
      ,
      Hi Motoma,

      I`m building a javascript xmpp(jabber) client. The xmpp server is openfire which is written in Java and build on Jeti. My javascript client exchange xml messages with the server and have to be on the same domain because of javascript cross domain security issues. I use Apache to serve the javascript files and to serve as a proxy to solve this issue. Both Apache and openfire sits on the same machine. Openfire listen on port 8080. The proxy config is:
      Code:
      NameVirtualHost *:80
      
      <VirtualHost *:80>
      	ServerName localhost
      	DocumentRoot "C:\Program Files\xampp\htdocs"
      </VirtualHost>
      
      <VirtualHost *:80>
      	ServerName example.com.com
      	ServerAlias *.example.com
      	DocumentRoot "C:\Program Files\xampp\htdocs\messenger"
      	ProxyRequests Off
      	ProxyPass /http-bind/ http://localhost:8080/http-bind/
      </VirtualHost>
      Is there anything else I can tell about my system?

      Thanks

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        I'm not familiar with the way Jabber works, but is there any communication being sent from the server to the client? Or is all interaction based on client requests?

        Comment

        • dolittle
          New Member
          • Sep 2007
          • 54

          #5
          Originally posted by Motoma
          I'm not familiar with the way Jabber works, but is there any communication being sent from the server to the client? Or is all interaction based on client requests?
          The client sends xmlhttprequest with xml messages and the server respond with xml messages. The client has to ask the server for new stuff because the server can`t PUSH data to the client.

          Comment

          • Motoma
            Recognized Expert Specialist
            • Jan 2007
            • 3236

            #6
            Originally posted by dolittle
            The client sends xmlhttprequest with xml messages and the server respond with xml messages. The client has to ask the server for new stuff because the server can`t PUSH data to the client.
            Have you tried debugging your proxy by using a traditional jabber client pointed at your Apache server?

            This will help you know if your proxy setup is incorrect, or if your client is making an invalid request.

            Comment

            • dolittle
              New Member
              • Sep 2007
              • 54

              #7
              I`ll try it.
              Thanks

              Comment

              Working...