473,385 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Infinite Loop

Hi,

A reverse proxy processes requests and then redirects them to a local or
remote server. However, when an HttpWebRequest is created and its Uri is the
local server (same machine), I get into an infinite loop situation, since
the reverse proxy continues to process the same request over and over. What
shall I do to make sure a page is only processed once on the local machine?

Thanks.
Mike


Oct 5 '07 #1
2 1315
Hi Mike, try comparing the ResponseUri in the response to see if it's
different?

Jim

On Oct 4, 7:31 pm, "Mike" <m...@mike.comwrote:
Hi,

A reverse proxy processes requests and then redirects them to a local or
remote server. However, when an HttpWebRequest is created and its Uri is the
local server (same machine), I get into an infinite loop situation, since
the reverse proxy continues to process the same request over and over. What
shall I do to make sure a page is only processed once on the local machine?

Thanks.
Mike

Oct 5 '07 #2

I did some more browsing and I think I found a way:

I add a header in the first request (HttpWebRequest), then in the
"ProcessRequest" of my handler, I use the following. Seems to work...
If Not context.Request.Headers("UBPReverseProxy") Is Nothing Then

context.RewritePath("~/Default3.aspx")

Dim h As IHttpHandler =
PageParser.GetCompiledPageInstance("~/Default3.aspx", Nothing, context)

h.ProcessRequest(context)

Return

End If
Does it make sense?

Mike

<jd*******@gmail.comschrieb im Newsbeitrag
news:11**********************@d55g2000hsg.googlegr oups.com...
Hi Mike, try comparing the ResponseUri in the response to see if it's
different?

Jim

On Oct 4, 7:31 pm, "Mike" <m...@mike.comwrote:
>Hi,

A reverse proxy processes requests and then redirects them to a local or
remote server. However, when an HttpWebRequest is created and its Uri is
the
local server (same machine), I get into an infinite loop situation, since
the reverse proxy continues to process the same request over and over.
What
shall I do to make sure a page is only processed once on the local
machine?

Thanks.
Mike


Oct 5 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
by: Gremlin | last post by:
If you are not familiar with the halting problem, I will not go into it in detail but it states that it is impossible to write a program that can tell if a loop is infinite or not. This is a...
5
by: mailpitches | last post by:
Hello, Is there any way to kill a Javascript infinite loop in Safari without force-quitting the browser? MP
4
by: LOPEZ GARCIA DE LOMANA, ADRIAN | last post by:
Hi all, I have a question with some code I'm writting: def main(): if option == 1: function_a()
13
by: Vector | last post by:
Is any infinite loop better than other? Is there any difference between there efficiency?
10
by: Steven Woody | last post by:
i have a program which always run dead after one or two days, i think somewhere a piece of the code is suspicious of involving into a infinite loop. but for some reason, it is very hard to debug....
44
by: James Watt | last post by:
can anyone tell me how to do an infinite loop in C/C++, please ? this is not a homework question .
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.