Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Retries or Give up at first attempt..

Retries or Give up at first attempt..

Scheduled Pinned Locked Moved The Lounge
csharpdatabasesysadminhelptutorial
14 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Malcolm Smart

    Most applications I work on seem to have a 'retry' count for connecting to various servers, especially database. They will, for example, retry up to 5 times, at 30 second intervals. I don't think in all my time I have seen an error log, warning, or eventlog entry where the connection failed on the 1st\2nd\3rd attempt etc, but connected successfully on a subsequent attempt. Years ago, networks were flakey, and a retry was deemed necessary incase of a network glitch - networks don't seem to 'glitch' anymore. Do you still code 'retries' in your apps, or give up at first attempt? OT : The 'click here to edit' bubble, hovering over the signature is kinda neat!

    Knowledge is hereditary, it will find its way up or down. Luc Pattyn
    and since what every time when i want to add button to this control one add two times posted in C# forum

    C Offline
    C Offline
    Chris Meech
    wrote on last edited by
    #5

    An FTP app that I wrote connects to one server that invariably resets the connection in the middle of transmission. I catch the exception, destroy the connection and start over from the beginning again. It's in an endless loop condition, but the worst I've encountered is two resets. So it does still happen, but maybe so infrequent that most people don't bother with it.

    Chris Meech I am Canadian. [heard in a local bar] Donate to help Conquer Cancer[^]

    1 Reply Last reply
    0
    • M Malcolm Smart

      Most applications I work on seem to have a 'retry' count for connecting to various servers, especially database. They will, for example, retry up to 5 times, at 30 second intervals. I don't think in all my time I have seen an error log, warning, or eventlog entry where the connection failed on the 1st\2nd\3rd attempt etc, but connected successfully on a subsequent attempt. Years ago, networks were flakey, and a retry was deemed necessary incase of a network glitch - networks don't seem to 'glitch' anymore. Do you still code 'retries' in your apps, or give up at first attempt? OT : The 'click here to edit' bubble, hovering over the signature is kinda neat!

      Knowledge is hereditary, it will find its way up or down. Luc Pattyn
      and since what every time when i want to add button to this control one add two times posted in C# forum

      V Offline
      V Offline
      Vikram A Punathambekar
      wrote on last edited by
      #6

      A subtle bug that almost drove me insane in 2006 was due to the DB server being rebooted weekly. The app would start losing connections, but since there was a pool of them, it would still function. After 3 or 4 days, it would go down. I fixed it by re-establishing the connection after a few minutes, and was given an award. :-O

      Cheers, Vikram.


      Zeppelin's law: In any Soapbox discussion involving Stan Shannon, the probability of the term "leftist" or "Marxist" appearing approaches 1 monotonically. Harris' addendum: I think you meant "monotonously". Martin's second addendum: Jeffersonian... I think that should at least get a mention.

      1 Reply Last reply
      0
      • M Malcolm Smart

        Most applications I work on seem to have a 'retry' count for connecting to various servers, especially database. They will, for example, retry up to 5 times, at 30 second intervals. I don't think in all my time I have seen an error log, warning, or eventlog entry where the connection failed on the 1st\2nd\3rd attempt etc, but connected successfully on a subsequent attempt. Years ago, networks were flakey, and a retry was deemed necessary incase of a network glitch - networks don't seem to 'glitch' anymore. Do you still code 'retries' in your apps, or give up at first attempt? OT : The 'click here to edit' bubble, hovering over the signature is kinda neat!

        Knowledge is hereditary, it will find its way up or down. Luc Pattyn
        and since what every time when i want to add button to this control one add two times posted in C# forum

        V Offline
        V Offline
        Vikram A Punathambekar
        wrote on last edited by
        #7

        A subtle bug that almost drove me insane in 2006 was due to the DB server being rebooted weekly. The app would start losing connections, but since there was a pool of them, it would still function. After 3 or 4 days, it would go down. I fixed it by re-establishing the connection after a few minutes, and was given an award. :-O

        Cheers, Vikram.


        Zeppelin's law: In any Soapbox discussion involving Stan Shannon, the probability of the term "leftist" or "Marxist" appearing approaches 1 monotonically. Harris' addendum: I think you meant "monotonously". Martin's second addendum: Jeffersonian... I think that should at least get a mention.

        M 1 Reply Last reply
        0
        • V Vikram A Punathambekar

          A subtle bug that almost drove me insane in 2006 was due to the DB server being rebooted weekly. The app would start losing connections, but since there was a pool of them, it would still function. After 3 or 4 days, it would go down. I fixed it by re-establishing the connection after a few minutes, and was given an award. :-O

          Cheers, Vikram.


          Zeppelin's law: In any Soapbox discussion involving Stan Shannon, the probability of the term "leftist" or "Marxist" appearing approaches 1 monotonically. Harris' addendum: I think you meant "monotonously". Martin's second addendum: Jeffersonian... I think that should at least get a mention.

          M Offline
          M Offline
          Malcolm Smart
          wrote on last edited by
          #8

          Vikram A Punathambekar wrote:

          and was given an award

          and you are so pleased with yourself you thought you'd post the message twice!

          Knowledge is hereditary, it will find its way up or down. Luc Pattyn
          and since what every time when i want to add button to this control one add two times posted in C# forum

          V V 2 Replies Last reply
          0
          • M Malcolm Smart

            Vikram A Punathambekar wrote:

            and was given an award

            and you are so pleased with yourself you thought you'd post the message twice!

            Knowledge is hereditary, it will find its way up or down. Luc Pattyn
            and since what every time when i want to add button to this control one add two times posted in C# forum

            V Offline
            V Offline
            Vikram A Punathambekar
            wrote on last edited by
            #9

            :laugh:

            Cheers, Vikram.


            Zeppelin's law: In any Soapbox discussion involving Stan Shannon, the probability of the term "leftist" or "Marxist" appearing approaches 1 monotonically. Harris' addendum: I think you meant "monotonously". Martin's second addendum: Jeffersonian... I think that should at least get a mention.

            V 1 Reply Last reply
            0
            • M Malcolm Smart

              Vikram A Punathambekar wrote:

              and was given an award

              and you are so pleased with yourself you thought you'd post the message twice!

              Knowledge is hereditary, it will find its way up or down. Luc Pattyn
              and since what every time when i want to add button to this control one add two times posted in C# forum

              V Offline
              V Offline
              Vasudevan Deepak Kumar
              wrote on last edited by
              #10

              I don't think it is user-driven multiple post. I have observed it while posting the other day in Lounge. After submitting, the same post appeared twice. I had to compare manually the messageids shown in the permalink of each manually and delete the latter. Since there were no edits in the textbox after submit button was clicked, I really wonder, how did the 'Post Duplicate Detector' failed to notice this. I have actually logged the issue over here: http://www.codeproject.com/script/Forums/View.aspx?fid=1645&msg=2448993[^] Today I have also updated the issue with this observation also. I think, CP Team should be able to help out with a resolution. But this is kind of random bug and not reproducible consistently.

              Vasudevan Deepak Kumar Personal Homepage
              Tech Gossips
              A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

              1 Reply Last reply
              0
              • V Vikram A Punathambekar

                :laugh:

                Cheers, Vikram.


                Zeppelin's law: In any Soapbox discussion involving Stan Shannon, the probability of the term "leftist" or "Marxist" appearing approaches 1 monotonically. Harris' addendum: I think you meant "monotonously". Martin's second addendum: Jeffersonian... I think that should at least get a mention.

                V Offline
                V Offline
                Vasudevan Deepak Kumar
                wrote on last edited by
                #11

                Vikram A Punathambekar wrote:

                irony

                And half-credit also goes to a bug in 'Posting Duplicate Detector': http://www.codeproject.com/script/Forums/View.aspx?fid=1159&msg=2452934[^] :)

                Vasudevan Deepak Kumar Personal Homepage
                Tech Gossips
                A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                1 Reply Last reply
                0
                • M Malcolm Smart

                  Most applications I work on seem to have a 'retry' count for connecting to various servers, especially database. They will, for example, retry up to 5 times, at 30 second intervals. I don't think in all my time I have seen an error log, warning, or eventlog entry where the connection failed on the 1st\2nd\3rd attempt etc, but connected successfully on a subsequent attempt. Years ago, networks were flakey, and a retry was deemed necessary incase of a network glitch - networks don't seem to 'glitch' anymore. Do you still code 'retries' in your apps, or give up at first attempt? OT : The 'click here to edit' bubble, hovering over the signature is kinda neat!

                  Knowledge is hereditary, it will find its way up or down. Luc Pattyn
                  and since what every time when i want to add button to this control one add two times posted in C# forum

                  E Offline
                  E Offline
                  Ennis Ray Lynch Jr
                  wrote on last edited by
                  #12

                  They are usually load bearing from some other flaw. Ie, it won't connect the first time but should connect the second. Lazy developers never think that there could be a flaw in their code and such things persist.

                  Need a C# Consultant? I'm available.
                  Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

                  1 Reply Last reply
                  0
                  • M Malcolm Smart

                    Most applications I work on seem to have a 'retry' count for connecting to various servers, especially database. They will, for example, retry up to 5 times, at 30 second intervals. I don't think in all my time I have seen an error log, warning, or eventlog entry where the connection failed on the 1st\2nd\3rd attempt etc, but connected successfully on a subsequent attempt. Years ago, networks were flakey, and a retry was deemed necessary incase of a network glitch - networks don't seem to 'glitch' anymore. Do you still code 'retries' in your apps, or give up at first attempt? OT : The 'click here to edit' bubble, hovering over the signature is kinda neat!

                    Knowledge is hereditary, it will find its way up or down. Luc Pattyn
                    and since what every time when i want to add button to this control one add two times posted in C# forum

                    T Offline
                    T Offline
                    Todd Smith
                    wrote on last edited by
                    #13

                    It's a good idea to have if the connection dies during a session. Perhaps the DB admin rebooted the server or something. The retry logic can attemp to reconnect the user without them having to do a manual retry, retry, retry, retry...

                    Todd Smith

                    1 Reply Last reply
                    0
                    • M Malcolm Smart

                      Most applications I work on seem to have a 'retry' count for connecting to various servers, especially database. They will, for example, retry up to 5 times, at 30 second intervals. I don't think in all my time I have seen an error log, warning, or eventlog entry where the connection failed on the 1st\2nd\3rd attempt etc, but connected successfully on a subsequent attempt. Years ago, networks were flakey, and a retry was deemed necessary incase of a network glitch - networks don't seem to 'glitch' anymore. Do you still code 'retries' in your apps, or give up at first attempt? OT : The 'click here to edit' bubble, hovering over the signature is kinda neat!

                      Knowledge is hereditary, it will find its way up or down. Luc Pattyn
                      and since what every time when i want to add button to this control one add two times posted in C# forum

                      M Offline
                      M Offline
                      Mark_Wallace
                      wrote on last edited by
                      #14

                      Malcolm Smart wrote:

                      OT : The 'click here to edit' bubble, hovering over the signature is kinda neat!

                      Sure, but how many times do you need to retry?

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups