Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

FD ReadError on user connect #307

Open
acaiafa opened this Issue Sep 21, 2012 · 5 comments

Comments

Projects
None yet
3 participants

acaiafa commented Sep 21, 2012

Hey,

I have a php script connecting a user to my inspircd server. in order for the user to successfully connect without errors I have to add a sleep(); into a portion of the fsock. Otherwise i continue to get a FD error. Below is a sample of the errors that appears and an strace during the failure.

error:
http://pastebin.ca/2206491

strace:
http://pastebin.ca/2206497

Contributor

Shawn-Smith commented Sep 21, 2012

Paste the connect portion of the php script

acaiafa commented Sep 21, 2012

connect array

$connection = array(
        'SERVER' => 'ssl://server',
        'PORT' => port,
        'NICK'  => 'nick'
        'NAME' => 'name', 
        'PASS' => $passwd,
);

connection_portion

$connection['NICK'] = 'usersnick';
        $connection['NAME'] = 'usersname';
        $socket = fsockopen($connection['SERVER'], $connection['PORT']);
        fputs($socket, "PASS {$connection['PASS']}\r\n");
        fputs($socket, "USER {$connection['NICK']} * sailserver :{$connection['NAME']}\r\n");
        fputs($socket, "NICK {$connection['NICK']}\r\n");

@acaiafa acaiafa closed this Sep 21, 2012

@acaiafa acaiafa reopened this Sep 21, 2012

acaiafa commented Sep 21, 2012

sorry that was an accident.

Owner

attilamolnar commented Sep 22, 2012

@acaiafa are you using v2.0.8?

acaiafa commented Sep 22, 2012

Yes 2.0.8

Anthony Caiafa

On Sep 22, 2012, at 9:29 AM, Attila Molnar notifications@github.com wrote:

@acaiafa https://github.com/acaiafa are you using v2.0.8?


Reply to this email directly or view it on
GitHubhttps://github.com/inspircd/inspircd/issues/307#issuecomment-8788769.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment