question

Upvotes
Accepted
129 16 25 31

RFA C++: Cannot create the communication socket pair

The RFA C++ Windows application crashed with the following error when starting.

File: ..\..\..\Common\Support\Util\Impl\Pipe.cpp 
Line: 69

Problem:
Cannot create the communication socket pair
RFA_VERIFY(retVal == true) failed

What is the cause of this error?

treprfarfa-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

This is a seed question.

1 Answer

· Write an Answer
Upvotes
Accepted
79.2k 251 52 74

Internally, RFA creates TCP pipe (socket pair) on the loopback address for inter-process communication among RFA threads. If it is unable to create this TCP pipe, it will throw this exception.

I suggest running a test program which creates a socket pair on the same machine. The test program is socketpair.zip. This program requires ws2_32.lib. If this program is also unable to create a socket pair, the problem could be from a security application running on the machine.

Please verify if there is any security application running on the machine which can block the creation of loopback connection on TCP port 9001. This TCP port is used by RFA C++ for the socket pair connection.


socketpair.zip (760 B)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

I have tried the test program. It failed with 10013 (permission denied). After investigating, the issue was caused by McAfee settings. After rolling back the settings, the RFA application can create a socket pair and run properly.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.