1

We have different development severs and a production server. Testing is done in the development servers. As a QA engineer, I'm switching between these servers quite often throughout the day.

In Chrome, sometimes I need to reload a page a few times to get it to pull from the newly switched server.

In Firefox, sometimes I need to quit the browser in order to get it to pull from the newly switched server.

(We have small tags that indicate which server you are pulling from, which is how I know in-browser.)

Why does that happen? I'd love to know how that happens (maybe what it's called?) and what the best way to deal with it is. (I know that Firefox has an extension for domain switching; is that the best solution?)

7
  • This happens because Firefox keeps the socket open (you can see this with netstat). Once the socket is closed it will connect to the new one. I don't know of a way to force firefox to close the socket except by quitting.
    – bahamat
    Commented Mar 9, 2011 at 23:56
  • I think this is a valid answer. You should move this to that section to get some reputation!
    – boo-urns
    Commented Mar 10, 2011 at 19:18
  • @Jeremy I'll take it ;-)
    – bahamat
    Commented Mar 10, 2011 at 20:03
  • How do you switch between these servers? Do they have different domain names, IP addresses, ...?
    – Arjan
    Commented Mar 10, 2011 at 20:14
  • @Arjan They have different IP addresses, but the same domain name. So I'll change my hosts file to reflect the new IP address for the same domain. Does that make sense? We're not sure that that's the best way to switch environments, but that's what we have implemented atm. If you have a better way of doing it, please share! I'd love some feedback.
    – boo-urns
    Commented Mar 10, 2011 at 23:37

1 Answer 1

2

This happens because Firefox keeps the socket open (you can see this with netstat). Once the socket is closed it will connect to the new one. I don't know of a way to force firefox to close the socket except by quitting.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .