OSDN Git Service

Set old destination for changing connection from sorry server to real server. sorry-fix-switch
authorKohei TANUMA <tanuma@users.sourceforge.jp>
Sun, 6 Jun 2010 17:37:17 +0000 (02:37 +0900)
committerKohei TANUMA <tanuma@users.sourceforge.jp>
Sun, 6 Jun 2010 17:37:17 +0000 (02:37 +0900)
commitfce439e56f60696e8771d10a9dc4f40c1247cac0
tree5f4003484290ac4a4000c4adacabcec0621c71c9
parent0090e94df5ca14117420d5b6cf3e563954c8d7f5
Set old destination for changing connection from sorry server to real server.
Fix the following pattern (a) and (b), but not (c).
(a) 1. First connection: sorry server (over max connections)
    2. Communicate to sorry server...
    3. Some other connections done. (below max connections)
    4. Change connection: sorry -> real server
(b) 1. First connection: sorry server (force-sorry-flag is on)
    2. Communicate to sorry server...
    3. Administrator change setting (force-sorry-flag is off)
    4. Change connection: sorry -> real server
(c) 1. First connection: sorry server (no real servers)
    2. Communicate to sorry server...
    3. Administrator add real servers
    4. Change connection: sorry -> real server
       (But now connection will be closed.)
src/conn.c
src/lsock.c