forked from cory/tildefriends
Needs more work, but several experiments that make things more responsive under load.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3783 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -204,7 +204,6 @@ void _socket_reportError(socket_t* socket, const char* error)
|
||||
printf("Socket error.\n");
|
||||
js_std_dump_error(tf_task_get_context(socket->_task));
|
||||
}
|
||||
tf_task_run_jobs(socket->_task);
|
||||
JS_FreeValue(tf_task_get_context(socket->_task), exception);
|
||||
JS_FreeValue(tf_task_get_context(socket->_task), result);
|
||||
}
|
||||
@ -500,7 +499,6 @@ void _socket_onNewConnection(uv_stream_t* server, int status)
|
||||
printf("Socket error on connection.\n");
|
||||
js_std_dump_error(tf_task_get_context(socket->_task));
|
||||
}
|
||||
tf_task_run_jobs(socket->_task);
|
||||
}
|
||||
}
|
||||
|
||||
@ -640,7 +638,6 @@ void _socket_onRead(uv_stream_t* stream, ssize_t readSize, const uv_buf_t* buffe
|
||||
js_std_dump_error(tf_task_get_context(socket->_task));
|
||||
}
|
||||
JS_FreeValue(tf_task_get_context(socket->_task), result);
|
||||
tf_task_run_jobs(socket->_task);
|
||||
}
|
||||
_socket_close_internal(socket);
|
||||
}
|
||||
@ -701,7 +698,6 @@ void _socket_onRead(uv_stream_t* stream, ssize_t readSize, const uv_buf_t* buffe
|
||||
js_std_dump_error(tf_task_get_context(socket->_task));
|
||||
}
|
||||
JS_FreeValue(tf_task_get_context(socket->_task), result);
|
||||
tf_task_run_jobs(socket->_task);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -751,7 +747,6 @@ void _socket_notifyDataRead(socket_t* socket, const char* data, size_t length)
|
||||
}
|
||||
JS_FreeValue(tf_task_get_context(socket->_task), typedArray);
|
||||
JS_FreeValue(tf_task_get_context(socket->_task), result);
|
||||
tf_task_run_jobs(socket->_task);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user