{"action":"created","issue":{"url":"https://api.github.com/repos/expressjs/express/issues/3082","repository_url":"https://api.github.com/repos/expressjs/express","labels_url":"https://api.github.com/repos/expressjs/express/issues/3082/labels{/name}","comments_url":"https://api.github.com/repos/expressjs/express/issues/3082/comments","events_url":"https://api.github.com/repos/expressjs/express/issues/3082/events","html_url":"https://github.com/expressjs/express/issues/3082","id":176217438,"number":3082,"title":"Set max SSL fragment size in Express","user":{"login":"houluy","id":11565649,"avatar_url":"https://avatars.githubusercontent.com/u/11565649?v=3","gravatar_id":"","url":"https://api.github.com/users/houluy","html_url":"https://github.com/houluy","followers_url":"https://api.github.com/users/houluy/followers","following_url":"https://api.github.com/users/houluy/following{/other_user}","gists_url":"https://api.github.com/users/houluy/gists{/gist_id}","starred_url":"https://api.github.com/users/houluy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houluy/subscriptions","organizations_url":"https://api.github.com/users/houluy/orgs","repos_url":"https://api.github.com/users/houluy/repos","events_url":"https://api.github.com/users/houluy/events{/privacy}","received_events_url":"https://api.github.com/users/houluy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/expressjs/express/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-11T03:38:22Z","updated_at":"2016-09-12T08:41:51Z","closed_at":null,"body":"I'm using express to set up an HTTPS server for some embedded devices. However, due to the lack of computing capabilities, the default SSL fragment size 16384 is too large for these devices. I wonder how I can change this size in express.\r\nI found that in tls modules, TLSSocket class has a method _tlsSocket.setMaxSendFragment(size)_ which may work, but I can't find out how to use it in Express.\r\nThis is how my server is established:\r\n```\r\nvar app = require('express')();\r\nvar cert_path = '/home/houlu/Programs/Node/http/ssl/';\r\nvar privateKey = fs.readFileSync(cert_path+'server.key', 'utf8');\r\nvar certificate = fs.readFileSync(cert_path+'server.crt', 'utf8');\r\nvar credentials = {key: privateKey, cert: certificate};\r\n\r\nhttpsServer = https.createServer(credentials, app);\r\n```\r\n\r\nThanks a lot!  :-)"},"comment":{"url":"https://api.github.com/repos/expressjs/express/issues/comments/246284193","html_url":"https://github.com/expressjs/express/issues/3082#issuecomment-246284193","issue_url":"https://api.github.com/repos/expressjs/express/issues/3082","id":246284193,"user":{"login":"houluy","id":11565649,"avatar_url":"https://avatars.githubusercontent.com/u/11565649?v=3","gravatar_id":"","url":"https://api.github.com/users/houluy","html_url":"https://github.com/houluy","followers_url":"https://api.github.com/users/houluy/followers","following_url":"https://api.github.com/users/houluy/following{/other_user}","gists_url":"https://api.github.com/users/houluy/gists{/gist_id}","starred_url":"https://api.github.com/users/houluy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houluy/subscriptions","organizations_url":"https://api.github.com/users/houluy/orgs","repos_url":"https://api.github.com/users/houluy/repos","events_url":"https://api.github.com/users/houluy/events{/privacy}","received_events_url":"https://api.github.com/users/houluy/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T08:41:51Z","updated_at":"2016-09-12T08:41:51Z","body":"It works! Thanks a lot!"}}
{"actor":{"display_login":"houluy"}}