René's URL Explorer Experiment


Title: Error when trying to pool socks stream connections · Issue #80 · sidorares/node-mysql2 · GitHub

Open Graph Title: Error when trying to pool socks stream connections · Issue #80 · sidorares/node-mysql2

X Title: Error when trying to pool socks stream connections · Issue #80 · sidorares/node-mysql2

Description: I'm trying to pool socks stream connections. Sample code here: var mysql2 = require('mysql2'); var SocksConnection = require('socksjs'); var mysql_server_options = { host: 'database.ho.st', port: 3306 }; var socks_options = { host: 'prox...

Open Graph Description: I'm trying to pool socks stream connections. Sample code here: var mysql2 = require('mysql2'); var SocksConnection = require('socksjs'); var mysql_server_options = { host: 'database.ho.st', port: 3...

X Description: I'm trying to pool socks stream connections. Sample code here: var mysql2 = require('mysql2'); var SocksConnection = require('socksjs'); var mysql_server_options = { host: '...

Opengraph URL: https://github.com/sidorares/node-mysql2/issues/80

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error when trying to pool socks stream connections ","articleBody":"I'm trying to pool socks stream connections.\n\nSample code here:\n\n``` javascript\nvar mysql2 = require('mysql2');\nvar SocksConnection = require('socksjs');\n\nvar mysql_server_options = {\n  host: 'database.ho.st',\n  port: 3306\n};\n\nvar socks_options = {\n  host: 'proxy.ho.st',\n  port: 1080,\n  user: 'proxy_username',\n  pass: 'proxy_password'\n};\n\nvar socksConn = new SocksConnection(mysql_server_options, socks_options);\n\nvar mysql_options =  {\n  database: 'db_name',\n  user: 'db_username',\n  password: 'secret',\n  stream: socksConn\n}\n\nvar mysqlConnPool = mysql2.createPool(mysql_options);\n\nmysqlConnPool.getConnection(function (err, connection) {\n\n  if (err) {\n    return callback(err);\n  }\n  // Use the connection\n  connection.query('SELECT 1+1 as test1;', function (err, rows, fields) {\n\n  // And done with the connection.\n  if (err) throw err;\n\n  console.log('Result: ', rows);\n\n  connection.release();\n  socksConn.dispose();\n  mysqlConnPool.end();\n  });\n});\n```\n\nBut I'm getting this error log:\n\n```\n09:40:00 web.1  | TypeError: Cannot call method 'execute' of null\n09:40:00 web.1  |     at PoolConnection.Connection.handlePacket (/Users/me/project/node_modules/mysql2/lib/connection.js:262:28)\n09:40:00 web.1  |     at PacketParser.execute (/Users/me/project/node_modules/mysql2/lib/packet_parser.js:40:21)\n09:40:00 web.1  |     at null.\u003canonymous\u003e (/Users/me/project/node_modules/mysql2/lib/connection.js:82:31)\n09:40:00 web.1  |     at EventEmitter.emit (events.js:95:17)\n09:40:00 web.1  |     at null.\u003canonymous\u003e (_stream_readable.js:746:14)\n09:40:00 web.1  |     at EventEmitter.emit (events.js:92:17)\n09:40:00 web.1  |     at emitDataEvents (_stream_readable.js:771:10)\n09:40:00 web.1  |     at Readable.on (_stream_readable.js:692:5)\n09:40:00 web.1  |     at PoolConnection.Connection (/Users/me/project/node_modules/mysql2/lib/connection.js:81:17)\n09:40:00 web.1  |     at new PoolConnection (/Users/me/project/node_modules/mysql2/lib/pool_connection.js:10:14)\n09:40:00 web.1  |     at Pool.getConnection (/Users/me/project/node_modules/mysql2/lib/pool.js:40:18)\n```\n\nIs my code is incorrect? More generally, are pooled custom stream connections normally supported? or is it specific to socks stream (my case)?\n\nThanks for your help.\n","author":{"url":"https://github.com/pierrickchabi","@type":"Person","name":"pierrickchabi"},"datePublished":"2014-02-05T08:51:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/80/node-mysql2/issues/80"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:43d40394-1fd4-575c-11da-dde4f800d08c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBEA4:7FB4E:25107B7:2FCFAD4:699298AE
html-safe-noncee6a03fdb1d8c1a36600b03b100624186ffecbe946085fdac59acbe05c2903a9d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUE0OjdGQjRFOjI1MTA3Qjc6MkZDRkFENDo2OTkyOThBRSIsInZpc2l0b3JfaWQiOiI2Mjc4OTEwODQ0NjgxMjMwNTEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1b1d7af06875157f88ac1ca1223452e1b9d0331e19b6862231e2b291d3cc65be
hovercard-subject-tagissue:26944855
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sidorares/node-mysql2/80/issue_layout
twitter:imagehttps://opengraph.githubassets.com/235666f46975f636944061df513585d4394623f8781ac97fd514181d2a29ddbb/sidorares/node-mysql2/issues/80
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/235666f46975f636944061df513585d4394623f8781ac97fd514181d2a29ddbb/sidorares/node-mysql2/issues/80
og:image:altI'm trying to pool socks stream connections. Sample code here: var mysql2 = require('mysql2'); var SocksConnection = require('socksjs'); var mysql_server_options = { host: 'database.ho.st', port: 3...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepierrickchabi
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/sidorares/node-mysql2 git https://github.com/sidorares/node-mysql2.git
octolytics-dimension-user_id173025
octolytics-dimension-user_loginsidorares
octolytics-dimension-repository_id9489902
octolytics-dimension-repository_nwosidorares/node-mysql2
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9489902
octolytics-dimension-repository_network_root_nwosidorares/node-mysql2
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/sidorares/node-mysql2/issues/80#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsidorares%2Fnode-mysql2%2Fissues%2F80
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsidorares%2Fnode-mysql2%2Fissues%2F80
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=sidorares%2Fnode-mysql2
Reloadhttps://github.com/sidorares/node-mysql2/issues/80
Reloadhttps://github.com/sidorares/node-mysql2/issues/80
Reloadhttps://github.com/sidorares/node-mysql2/issues/80
sidorares https://github.com/sidorares
node-mysql2https://github.com/sidorares/node-mysql2
Please reload this pagehttps://github.com/sidorares/node-mysql2/issues/80
Notifications https://github.com/login?return_to=%2Fsidorares%2Fnode-mysql2
Fork 659 https://github.com/login?return_to=%2Fsidorares%2Fnode-mysql2
Star 4.3k https://github.com/login?return_to=%2Fsidorares%2Fnode-mysql2
Code https://github.com/sidorares/node-mysql2
Issues 449 https://github.com/sidorares/node-mysql2/issues
Pull requests 49 https://github.com/sidorares/node-mysql2/pulls
Discussions https://github.com/sidorares/node-mysql2/discussions
Actions https://github.com/sidorares/node-mysql2/actions
Projects 0 https://github.com/sidorares/node-mysql2/projects
Wiki https://github.com/sidorares/node-mysql2/wiki
Security 0 https://github.com/sidorares/node-mysql2/security
Insights https://github.com/sidorares/node-mysql2/pulse
Code https://github.com/sidorares/node-mysql2
Issues https://github.com/sidorares/node-mysql2/issues
Pull requests https://github.com/sidorares/node-mysql2/pulls
Discussions https://github.com/sidorares/node-mysql2/discussions
Actions https://github.com/sidorares/node-mysql2/actions
Projects https://github.com/sidorares/node-mysql2/projects
Wiki https://github.com/sidorares/node-mysql2/wiki
Security https://github.com/sidorares/node-mysql2/security
Insights https://github.com/sidorares/node-mysql2/pulse
New issuehttps://github.com/login?return_to=https://github.com/sidorares/node-mysql2/issues/80
New issuehttps://github.com/login?return_to=https://github.com/sidorares/node-mysql2/issues/80
Error when trying to pool socks stream connections https://github.com/sidorares/node-mysql2/issues/80#top
https://github.com/sidorares
feature requesthttps://github.com/sidorares/node-mysql2/issues?q=state%3Aopen%20label%3A%22feature%20request%22
0.15.0https://github.com/sidorares/node-mysql2/milestone/1
https://github.com/pierrickchabi
https://github.com/pierrickchabi
pierrickchabihttps://github.com/pierrickchabi
on Feb 5, 2014https://github.com/sidorares/node-mysql2/issues/80#issue-26944855
sidorareshttps://github.com/sidorares
feature requesthttps://github.com/sidorares/node-mysql2/issues?q=state%3Aopen%20label%3A%22feature%20request%22
0.15.0https://github.com/sidorares/node-mysql2/milestone/1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.