connx | A simple tcp server/client go framework | TCP library
kandi X-RAY | connx Summary
kandi X-RAY | connx Summary
A simple tcp server/client go framework.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of connx
connx Key Features
connx Examples and Code Snippets
Community Discussions
Trending Discussions on connx
QUESTION
I am having issue issue while connecting to ssl enabled ibm mq using nodejs. I am trying this code with all values replaced as per my MQ. When i execute code i see error MQ call failed in CONNX: MQCC = MQCC_FAILED [2] MQRC = MQRC_HOST_NOT_AVAILABLE [2538]
Keydb i have created using 'runmqakm' utility.
to get ssl logs, i tried setting below system variable before executting Node js code but dont get any logs on console. set NODE_DEBUG='tls' or even set NODE_DEBUG=tls
Can some one please help me to get ssl debug logs
...ANSWER
Answered 2021-Jan-18 at 11:18For the Node.js side you need to know which npm modules are being used to determine which settings to use. The ibmmq
node library calls the C MQI API, which also takes care of TLS, so a NODE_DEBUG
option is not going to help.
Going through the library it looks like you might be able to dynamically switch on logging by calling
QUESTION
I'm using a bash script to make changes to an SQL database. One of the values i'm updating uses dollar signs. The current value being something like "$$$$$" and i need to change it to "$$$$$$$$$$". However, a a $ in a bash script is used for variables.
How can i allow this small section of my bash script to used a $ as a normal character?
...ANSWER
Answered 2019-Dec-16 at 20:08Bash provides different types of quoting, each with different rules about substitution (single quote '
, double quote "
, here document/string <<<"string"
and and $'
.
The double quote (used in the log ... update
) will enable variable substitution, replacing each pair of $$
with the current shell PID (looks like random number).
Few options:
Consider quoting each '$' to prevent expansion
QUESTION
Current Situation : In my company we are using a windows server, in which we have installed Docker Quickstart Terminal. We have made a mysql-container and made a DB inside. We access the DB with python apps in remote pcs by using the server's IP in the code (host argument):
connx = mysql.connector.connect(user='root', password='somepass', host='192.XXX.XX.XX', port=3306, database='db_name', auth_plugin='mysql_native_password')
but we used port-forward in the server-side to access the dockerised DB, thus the packets are forwarded to 192.168.99.100 (default docker IP)
Future Situation: The company has decided to change the server and use Ubuntu instead (v18.04 i think). Unfortunately i have very little experience with linux and could not find a simple answer as the following online :
'Which IP should we use on the host argument above ?' Docker installation on linux does not seem to install a VM, so will the new server's IP be enough to access the dockerised IP remotely ?
PS : we will probably do a 'docker run -p 3306:3306 mysql:latest' command on the server to expose the ports
...ANSWER
Answered 2019-Dec-10 at 12:54You should be able to access the database the say way you were able to access in Windows Server, i.e., using the IP of the Ubuntu host machine and port forwarding the containerized database port with the host port.
QUESTION
Currently Im facing problem in importing csv file to devexpress gridview,When i execute the code, the following error showed 'C:\New folder\QtimeAutomotiveByLot_new.csv' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
and the filepath works perfectly fine on my side. my code is as follow, can anyone guide me on this?
asp.net
...ANSWER
Answered 2018-Aug-21 at 09:14Sounds like your current connection string to read CSV file is wrong. Unlike reading Excel files, when reading CSV files we're not specifying actual file name, but directory path where it belongs (see this issue).
The following example shows how to read CSV file using Jet 4.0 provider. Note that instead of setting IMEX=1
, use FMT=Delimited
property because IMEX
primarily used for XLS and XLSX file format:
QUESTION
I want to connect to a WebSphere MQ Queue using SSL authentification from a PHP application (script).
- Queue Manager Version is 7.0 or 7.5
- MQ Client Version is 8.0
- PHP Version is 7.0 (docker)
- Using PHP mqseries pecl extension v0.15 (with custom fixes)
So far I was able to connect without SSL connection.
Here are the steps I have to done so far:
- I have installed the WebSphere MQ Client v8 for Linux (CentOS in my case)
- I have downloaded the PECL 0.15 version of the mqseries php extension. (There as a small bug in the extension, I had to recompile it to make it work properly. I used to get a segmentation fault on MQGET).
- I linked the the mqseries.so to php and enabled the extension.
I succesfully (without SSL)
- Connect to the queue manager
- Open the queue for reading
- Get messages on the queue
- Close the connection
When I set the USE_SSL
in my script to true, I get the error code 2393 that means "An MQCONN or MQCONNX call was issued with SSL configuration options specified, but an error occurred during the initialization of the SSL environment.
" This error message is very generic and does not help me pin point where is the problem.
The MQ_KEYSTORE
is set as /path/to/my/key
and my filename is key.kdb
and has at the same level key.sth
as suggested by this documentation
The MQ_SSL_CIPHER_SPEC
is the same in the script than specified by on the queue manager for the specified MQ_CHANNEL_SSL
. Checked multiple times. These are NOT the Cipher Suite used with JMS connections
The security cache has been refreshed on the queue manager.
On the server side, I checked the error logs for the queue manager and didn't seem to see my channel name. I say "seem" because there was a lot of noise and there were a few ???
channel name in the lot. So I feel like it did not reach the queue manager for some reason.
I also used the "amqssslc
" command found in the MQ Client installation bin folder to test my ssl config. I get the same error than using the PHP script.
I also used WireShark to sniff packets on the corresponding MQ_PORT
. The content of the packages contained certificate information. So there is something that looks like a SSL hand shake going on.
I am now out of ideas as of how to debug the case. Does anyone has an idea of what to check next? Is there connection logs on my MQ Client installation that I should check?
Here is an example of a connection using SSL in PHP
Here is a simplified version of my MQ script (I removed the outputs). Some of the constants are not disclosed for security purposes.
All MQSERIES_* constants are defined in the extension
All MQ_* are hardcoded parameters to test my script but their definition does not appear in the script excerpt.
...ANSWER
Answered 2017-Sep-08 at 18:50With a full IBM MQ client install, client side errors will be logged to the directory: /var/mqm/errors
The errors if any will be logged to the file AMQERR01.LOG
(this gets rotated with two other files ending in 02
and 03
. If the error is something that MQ is not expecting it may also create a file that ended in .FDC
with additional details.
The Queue Manager will log a channel name of ???
if the connection has failed during the channel negotiating prior to the client the sending the channel name. If the IBM MQ the queue manager is using v7.5 or lower the channel name is not exchanged until after the TLS handshake is complete.
With v8 and later clients connecting to v8 and later queue managers, MQ will use TLS SNI to exchange the channel name during TLS negotiation, however I am unsure if MQ has also been enhanced to log this channel name where in prior versions it logged ???
. Note that IBM MQ Classes for Java and IBM MQ Classes for JMS client even at v8 and later do not support the SNI feature and do not send the channel name until after the TLS handshake is complete.
Check that your client key.kdb
has a private key. There are three ways which MQ uses to identify which private key to use.
With MQ Client v7.5 and earlier the label of the private key must be:
QUESTION
I'm new to PHP (just teaching myself) and have the following error in PHP but I cant get my head arround the problem:
...Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in
ANSWER
Answered 2017-Jun-30 at 04:55Please use only one parameter in this function.
QUESTION
ANSWER
Answered 2017-Jan-25 at 19:14Using only xlrd
package, you could do brute force like this:
QUESTION
I am making a multiple choice question and on the first page radiobuttons look like this
...ANSWER
Answered 2017-Jan-22 at 00:21You can set the counter outside the loop
and use it inside the loop:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install connx
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page