mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-19 10:00:59 +00:00
Improve logging.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@19738 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f967603e2f
commit
81bac1d48c
2 changed files with 25 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thy Jul 15 09:40:00 2004 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* WebServer.m: ([_didRead:]) more informative logging upon reading
|
||||||
|
an unexpected end-of-file
|
||||||
|
|
||||||
Wed Jul 14 12:07:00 2004 Richard Frith-Macdonald <rfm@gnu.org>
|
Wed Jul 14 12:07:00 2004 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* configure.ac: Check for PQfformat in libpq, if it is not there
|
* configure.ac: Check for PQfformat in libpq, if it is not there
|
||||||
|
|
21
WebServer.m
21
WebServer.m
|
@ -807,18 +807,37 @@ unescapeData(const unsigned char* bytes, unsigned length, unsigned char *buf)
|
||||||
|
|
||||||
session = (WebServerSession*)NSMapGet(_sessions, (void*)hdl);
|
session = (WebServerSession*)NSMapGet(_sessions, (void*)hdl);
|
||||||
NSAssert(session != nil, NSInternalInconsistencyException);
|
NSAssert(session != nil, NSInternalInconsistencyException);
|
||||||
|
parser = [session parser];
|
||||||
|
|
||||||
d = [dict objectForKey: NSFileHandleNotificationDataItem];
|
d = [dict objectForKey: NSFileHandleNotificationDataItem];
|
||||||
|
|
||||||
if ([d length] == 0)
|
if ([d length] == 0)
|
||||||
{
|
{
|
||||||
|
if (parser == nil)
|
||||||
|
{
|
||||||
|
NSMutableData *buffer = [session buffer];
|
||||||
|
|
||||||
|
if ([buffer length] == 0)
|
||||||
|
{
|
||||||
|
[self _alert: @"%@ read end-of-file in empty request", session];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
[self _alert: @"%@ read end-of-file in partial request - %@",
|
||||||
|
session, buffer];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
[self _alert: @"%@ read end-of-file in incomplete request - %@",
|
||||||
|
session, [parser mimeDocument]];
|
||||||
|
}
|
||||||
[self _alert: @"%@ read end-of-file in request", session];
|
[self _alert: @"%@ read end-of-file in request", session];
|
||||||
[self _endSession: session];
|
[self _endSession: session];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// NSLog(@"Data read on %@ ... %@", session, d);
|
// NSLog(@"Data read on %@ ... %@", session, d);
|
||||||
|
|
||||||
parser = [session parser];
|
|
||||||
if (parser == nil)
|
if (parser == nil)
|
||||||
{
|
{
|
||||||
unsigned char *bytes;
|
unsigned char *bytes;
|
||||||
|
|
Loading…
Reference in a new issue