@ -472,6 +472,10 @@ socket_send (oi_socket *socket)
socket->errorno = errno;
return ERROR;
case EPIPE:
default:
perror("send()");
printf("%p had send error\n", socket);
@ -13,9 +13,12 @@ File.exists = function (path, callback) {
}
File.cat = function (path, encoding, callback) {
var content = "";
var file = new File();
file.encoding = "utf8";
file.encoding = encoding;
if (file.encoding == "raw") content = [];
var pos = 0;
var chunkSize = 10*1024;
@ -70,8 +70,10 @@ private:
Connection *connection = static_cast<Connection*> (s->data);
connection->OnDisconnect();
/*
if (s->errorno)
printf("socket died with error %d\n", s->errorno);
*/
connection->Detach();