MySQL Lists are EOL. Please join:

List:Internals« Previous MessageNext Message »
From:sasha Date:October 24 2000 12:29pm
Subject:Re: Shared Memory.
View as plain text  
Tobias Rundström wrote:
> Hello MySQL developers. I have a question about the MYSQL* struct.
> I am trying to build a connection pool daemon for mysql, a program that
> should handle all connections to my mysql server and then share them to
> program (in this case a cgi script).
> To do this I compiled libmm and wanted to send the struct over with unix
> sockets. But the struct contains pointers to other memory adresses. What I
> know need is a way to copy the struct in to my shared memory struct and I
> wonder if there are any better way to do this then to do it manualy?

In order to share a connection you must stay in the same process - so using
shared memory will not work even if you copy all the data structures. 

MySQL Development Team
   __  ___     ___ ____  __ 
  /  |/  /_ __/ __/ __ \/ /   Sasha Pachev <sasha@stripped>
 / /|_/ / // /\ \/ /_/ / /__  MySQL AB,
/_/  /_/\_, /___/\___\_\___/  Provo, Utah, USA
Shared Memory.Tobias Rundström24 Oct
  • Re: Shared Memory.sasha24 Oct
    • Re: Shared Memory.Thimble Smith24 Oct
      • Re: Shared Memory.Thimble Smith24 Oct