Re: socket filename is truncated in error message

2001-11-29 Thread Sinisa Milivojevic

Brian Bartholomew writes:
> Sinisa Milivojevic <[EMAIL PROTECTED]> writes:
> 
> > This is simply because we have to limit our errors buffers to some
> > reasonable values.
> 
> Are there so many of these filename buffers that they can't be sized
> to MAXPATHLEN?

Yes, and we try to use as little stack as possible. Pushing everything
to heap, on the other hand,  would cause some speed penalties.

-- 
Regards,
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Fulltime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
   <___/   www.mysql.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: socket filename is truncated in error message

2001-11-29 Thread Brian Bartholomew

Sinisa Milivojevic <[EMAIL PROTECTED]> writes:

> This is simply because we have to limit our errors buffers to some
> reasonable values.

Are there so many of these filename buffers that they can't be sized
to MAXPATHLEN?
Brian

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: socket filename is truncated in error message

2001-11-29 Thread Sinisa Milivojevic

Brian Bartholomew writes:
> >Description:
> 
> My correct socket filename is:
> 
> /home/bb/depot/mysql-3.23.43-9a7c0100047f2d1b5c72210d23df8448/tmp/mysql.sock
> 
> However, the socket filename is truncated in the error message when
> the database isn't started:
> 
> % mysqlshow 
> ./mysqlshow: Can't connect to local MySQL server through socket 
>'/home/bb/depot/mysql-3.23.43-9a7c0100047f2d1b5c72210d23df8448/tm' (111)
> ^
> 
> Note that only the error message is truncated, not the filename itself;
> when the database is running, the connection works.
> 

This is simply because we have to limit our errors buffers to some
reasonable values.

-- 
Regards,
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Fulltime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
   <___/   www.mysql.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php