Tk Library Source Code

View Ticket
Login
Ticket UUID: 1085174
Title: socket failure
Type: Bug Version: None
Submitter: msofer Created on: 2004-12-14 15:15:39
Subsystem: tclapps :: tkchat Assigned To: patthoyts
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-03-04 09:59:53
Resolution: Fixed Closed By: patthoyts
    Closed on: 2005-03-04 02:59:53
Description:
(Looks like a server problem to me - this worked fine
until yesterday, I did not upgrade).

At app startup (v 1.239) I get an error and no history
selector, but tkChat works fine after that. The
errorInfo is:

couldn't open socket: connection refused
couldn't open socket: connection refused
    while executing
"::http::geturl $url  -headers [buildProxyHeaders]"
    (procedure "GetHistLogIdx" line 10)
    invoked from within
"GetHistLogIdx logsize"
    (procedure "tkchat::LoadHistory" line 13)
    invoked from within
"tkchat::LoadHistory"
User Comments: patthoyts added on 2005-03-04 09:59:53:
Logged In: YES 
user_id=202636

I've changed the history fetch code to use asynchronous http
gets. Now if it fails, it will put a system message into the
chat window and give up.

pointsman added on 2005-02-20 22:01:48:
Logged In: YES 
user_id=13222

Still got that error with v 1.263:

couldn't open socket: connection refused
couldn't open socket: connection refused
    while executing
"::http::geturl $url  -headers [buildProxyHeaders]"
    (procedure "GetHistLogIdx" line 10)
    invoked from within
"GetHistLogIdx logsize"
    (procedure "tkchat::LoadHistory" line 13)
    invoked from within
"tkchat::LoadHistory"
    ("after" script)

As for Miguel, otherwise tkchat works as normal.

patthoyts added on 2005-02-17 22:18:52:
Logged In: YES 
user_id=202636

This was due to the web server being down at the time.

Should be fixed to give a better error message than a traceback.

kennykb added on 2004-12-14 22:52:02:
Logged In: YES 
user_id=99768

Further issue in 1.253: There's missing error handling code?

invalid command name "HttpServerError"
    while executing
"HttpServerError $tok "History Fetch""
    (procedure "GetHistLogIdx" line 15)
    invoked from within
"GetHistLogIdx logsize"
    (procedure "tkchat::LoadHistory" line 13)
    invoked from within
"tkchat::LoadHistory"
    ("after" script)

patthoyts added on 2004-12-14 22:50:44:
Logged In: YES 
user_id=202636

kbk has got:
<kbk> invalid command name "HttpServerError"
    while executing
"HttpServerError $tok "History Fetch""
    (procedure "GetHistLogIdx" line 15)
    invoked from within
"GetHistLogIdx logsize"
    (procedure "tkchat::LoadHistory" line 13)
    invoked from within
"tkchat::LoadHistory"
    ("after" script)