mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
copy Houdini fix from tuxcvs;-fix unsigned len >= 0 is always true
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@287 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -88,7 +88,7 @@ void CLogging::printf ( const char *fmt, ... )
|
||||
pthread_mutex_lock( &Log_mutex );
|
||||
::printf(buffer);
|
||||
if(LogToFile)
|
||||
; //FIXME Logging to File
|
||||
usleep(0); //FIXME Logging to File
|
||||
pthread_mutex_unlock( &Log_mutex );
|
||||
}
|
||||
|
||||
|
@@ -301,7 +301,7 @@ int CySocket::Send(char const *buffer, unsigned int length)
|
||||
else
|
||||
#endif
|
||||
len = ::send(sock, buffer, length, MSG_NOSIGNAL);
|
||||
if(len >= 0)
|
||||
if(len > 0)
|
||||
BytesSend += len;
|
||||
return len;
|
||||
}
|
||||
|
@@ -76,46 +76,46 @@ typedef struct
|
||||
} HttpEnumString;
|
||||
|
||||
static const HttpEnumString httpResponseNames[] = {
|
||||
{ HTTP_CONTINUE, "Continue" },
|
||||
{ HTTP_SWITCHING_PROTOCOLS, "Switching Protocols" },
|
||||
{ HTTP_OK, "OK" },
|
||||
{ HTTP_CREATED, "Created" },
|
||||
{ HTTP_ACCEPTED, "Accepted" },
|
||||
{ HTTP_NON_AUTHORITATIVE_INFO, "No Authorative Info" },
|
||||
{ HTTP_NO_CONTENT, "No Content" },
|
||||
{ HTTP_RESET_CONTENT, "Reset Content" },
|
||||
{ HTTP_PARTIAL_CONTENT, "Partial Content" },
|
||||
{ HTTP_MULTIBLE_CHOICES, "Multiple Choices" },
|
||||
{ HTTP_MOVED_PERMANENTLY, "Moved Permanently" },
|
||||
{ HTTP_MOVED_TEMPORARILY, "Moved Temporarily" },
|
||||
{ HTTP_SEE_OTHER, "See Other" },
|
||||
{ HTTP_NOT_MODIFIED, "Not Modified" },
|
||||
{ HTTP_USE_PROXY, "Use Proxy" },
|
||||
{ HTTP_TEMPORARY_REDIRECT, "Temporary Redirect" },
|
||||
{ HTTP_CONTINUE, "Continue", "" },
|
||||
{ HTTP_SWITCHING_PROTOCOLS, "Switching Protocols", "" },
|
||||
{ HTTP_OK, "OK", "" },
|
||||
{ HTTP_CREATED, "Created", "" },
|
||||
{ HTTP_ACCEPTED, "Accepted", "" },
|
||||
{ HTTP_NON_AUTHORITATIVE_INFO, "No Authorative Info", "" },
|
||||
{ HTTP_NO_CONTENT, "No Content", "" },
|
||||
{ HTTP_RESET_CONTENT, "Reset Content", "" },
|
||||
{ HTTP_PARTIAL_CONTENT, "Partial Content", "" },
|
||||
{ HTTP_MULTIBLE_CHOICES, "Multiple Choices", "" },
|
||||
{ HTTP_MOVED_PERMANENTLY, "Moved Permanently", "" },
|
||||
{ HTTP_MOVED_TEMPORARILY, "Moved Temporarily", "" },
|
||||
{ HTTP_SEE_OTHER, "See Other", "" },
|
||||
{ HTTP_NOT_MODIFIED, "Not Modified", "" },
|
||||
{ HTTP_USE_PROXY, "Use Proxy", "" },
|
||||
{ HTTP_TEMPORARY_REDIRECT, "Temporary Redirect", "" },
|
||||
{ HTTP_BAD_REQUEST, "Bad Request", "Unsupported method." },
|
||||
{ HTTP_UNAUTHORIZED, "Unauthorized", "Access denied." },
|
||||
{ HTTP_PAYMENT_REQUIRED, "Payment Required" },
|
||||
{ HTTP_UNAUTHORIZED, "Unauthorized", "Access denied."},
|
||||
{ HTTP_PAYMENT_REQUIRED, "Payment Required", "" },
|
||||
{ HTTP_FORBIDDEN, "Forbidden", "" },
|
||||
{ HTTP_NOT_FOUND, "Not Found", "The requested URL was not found on this server." },
|
||||
{ HTTP_METHOD_NOT_ALLOWED, "Method Not Allowed" },
|
||||
{ HTTP_NOT_ACCEPTABLE, "Not Acceptable" },
|
||||
{ HTTP_PROXY_AUTHENTICATION_REQUIRED,"Proxy Authentication Required" },
|
||||
{ HTTP_REQUEST_TIMEOUT, "Request Time-out" },
|
||||
{ HTTP_CONFLICT, "Conflict" },
|
||||
{ HTTP_GONE, "Gone" },
|
||||
{ HTTP_LENGTH_REQUIRED, "Length Required" },
|
||||
{ HTTP_PRECONDITION_FAILED, "Precondition Failed" },
|
||||
{ HTTP_REQUEST_ENTITY_TOO_LARGE,"Request Entity Too Large" },
|
||||
{ HTTP_REQUEST_URI_TOO_LARGE, "Request-URI Too Large" },
|
||||
{ HTTP_UNSUPPORTED_MEDIA_TYPE, "Unsupported Media Type" },
|
||||
{ HTTP_REQUEST_RANGE_NOT_SATISFIABLE,"Requested range not satisfiable" },
|
||||
{ HTTP_EXPECTAION_FAILED, "Expectation Failed" },
|
||||
{ HTTP_METHOD_NOT_ALLOWED, "Method Not Allowed", "" },
|
||||
{ HTTP_NOT_ACCEPTABLE, "Not Acceptable", "" },
|
||||
{ HTTP_PROXY_AUTHENTICATION_REQUIRED, "Proxy Authentication Required", "" },
|
||||
{ HTTP_REQUEST_TIMEOUT, "Request Time-out", "" },
|
||||
{ HTTP_CONFLICT, "Conflict", "" },
|
||||
{ HTTP_GONE, "Gone", "" },
|
||||
{ HTTP_LENGTH_REQUIRED, "Length Required", "" },
|
||||
{ HTTP_PRECONDITION_FAILED, "Precondition Failed", "" },
|
||||
{ HTTP_REQUEST_ENTITY_TOO_LARGE, "Request Entity Too Large", "" },
|
||||
{ HTTP_REQUEST_URI_TOO_LARGE, "Request-URI Too Large", "" },
|
||||
{ HTTP_UNSUPPORTED_MEDIA_TYPE, "Unsupported Media Type", "" },
|
||||
{ HTTP_REQUEST_RANGE_NOT_SATISFIABLE, "Requested range not satisfiable", "" },
|
||||
{ HTTP_EXPECTAION_FAILED, "Expectation Failed", "" },
|
||||
{ HTTP_INTERNAL_SERVER_ERROR, "Internal Server Error", "Internal Server Error" },
|
||||
{ HTTP_NOT_IMPLEMENTED, "Not Implemented", "The requested method is not recognized by this server." },
|
||||
{ HTTP_BAD_GATEWAY, "Bad Gateway" },
|
||||
{ HTTP_SERVICE_UNAVAILABLE, "Service Unavailable" },
|
||||
{ HTTP_GATEWAY_TIMEOUT, "Gateway Time-out" },
|
||||
{ HTTP_HTTP_VERSION_NOT_SUPPORTED,"HTTP Version not supported" },
|
||||
{ HTTP_BAD_GATEWAY, "Bad Gateway", "" },
|
||||
{ HTTP_SERVICE_UNAVAILABLE, "Service Unavailable", "" },
|
||||
{ HTTP_GATEWAY_TIMEOUT, "Gateway Time-out", "" },
|
||||
{ HTTP_HTTP_VERSION_NOT_SUPPORTED, "HTTP Version not supported", "" },
|
||||
};
|
||||
|
||||
// HTTP-methods
|
||||
|
Reference in New Issue
Block a user