Skip to content
Snippets Groups Projects
Commit 791db64f authored by rswindell's avatar rswindell
Browse files

Better debug output.

parent eb915770
No related branches found
No related tags found
No related merge requests found
......@@ -111,10 +111,10 @@ static void js_finalize_socket(JSContext *cx, JSObject *obj)
if((p=(private_t*)JS_GetPrivate(cx,obj))==NULL)
return;
if(p->external==JS_FALSE && p->sock!=INVALID_SOCKET)
if(p->external==JS_FALSE && p->sock!=INVALID_SOCKET) {
close_socket(p->sock);
dbprintf(FALSE, p, "closed/deleted");
dbprintf(FALSE, p, "closed/deleted");
}
free(p);
......@@ -410,7 +410,7 @@ js_recvline(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
if(!rd) {
if(time(NULL)-start>timeout) {
dbprintf(FALSE, p, "recvline timeout");
dbprintf(FALSE, p, "recvline timeout (received: %d)",i);
*rval = JSVAL_NULL;
return(JS_TRUE); /* time-out */
}
......@@ -569,7 +569,7 @@ static JSBool js_socket_get(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
tiny = JSVAL_TO_INT(id);
#if 0 /* just too much */
dbprintf(FALSE, sock, "getting property %d",tiny);
dbprintf(FALSE, p, "getting property %d",tiny);
#endif
switch(tiny) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment