Re: [Sqlrelay-discussion] sqlr-listener problems (0.39.4)
Brought to you by:
mused
|
From: David M. <dav...@fi...> - 2009-05-29 14:40:38
|
Please post the PHP code you're using and the sqlrsh commands you're
running. From that I should be able to tell what's going on.
David Muse
dav...@fi...
On Fri, 2009-05-29 at 11:13 +0800, Lost Snow wrote:
> Hi,
>
> My sqlrelay version is 0.39.4,
> and I use php client api
>
> When I use sqlrcon_ping() to check the connection
> It returns:
>
> Connecting to listener...
> Unix socket: /tmp/sqlrelay.socket
> Inet socket: sqlrelay:9001
> Setting Error
> Couldn't connect to the listener.
>
>
> Then I use strace to check the listener
>
> select(8, [3 4 5 6 7], NULL, NULL, NULL) = 1 (in [6])
> accept(6, {sa_family=AF_INET, sin_port=htons(64726),
> sin_addr=inet_addr("127.0.0.1")}, [16]) = 16
> setsockopt(16, SOL_TCP, TCP_NODELAY, [1], 4) = 0
> semctl(53149703, 10, IPC_64|GETVAL, 0xbff549f8) = 14
> semop(53149703, 0x9b0aac8, 1) = 0
> clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
> SIGCHLD, child_tidptr=0xb7ef09d8) = 4245
> --- SIGCHLD (Child exited) @ 0 (0) ---
> waitpid(-1, NULL, WNOHANG) = 4245
> waitpid(-1, NULL, WNOHANG) = -1 ECHILD (No child processes)
> sigreturn() = ? (mask now ~[INT KILL ALRM TERM CHLD STOP RTMIN])
> close(16) = 0
>
>
> But when I use sqlrsh it is ok.
>
> How to resolve?
> Thank you.
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> __________________________________________________
> D O T E A S Y - "Join the web hosting revolution!"
> http://www.doteasy.com
> _______________________________________________ Sqlrelay-discussion mailing list Sql...@li... https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion __________________________________________________ D O T E A S Y - "Join the web hosting revolution!" http://www.doteasy.com
__________________________________________________
D O T E A S Y - "Join the web hosting revolution!"
http://www.doteasy.com
|