Connection timeout changed to include sending of the protocol header.
Connection timeout changed to include sending of the protocol header.

So far the timeout applied only to *receiving* of the protocol header.
This patch handles the unlikely situation if protocol header cannot
be *sent* for extended period of time for some reason.

Signed-off-by: Martin Sustrik <4dd6061be1198639e8b05ce4fd5ead7a0dcaa0f4@250bpm.com>

kaostao/nanomsg,JackDunaway/featherweight-nanomsg,hyperfact/nanomsg,ttyangf/nanomsg,krafczyk/nanomsg,snikulov/nanomsg,snikulov/nanomsg,potatogim/nanomsg,zerotacg/nanomsg,wfxiang08/nanomsg,gdamore/mamomsg,pakozm/nanomsg,nirs/nanomsg,cosin2008/nanomsg.NET,yan97ao/nanomsg,imp/nanomsg,tempbottle/nanomsg,simplestbest/nanomsg,kaostao/nanomsg,TTimo/nanomsg,JackDunaway/featherweight-nanomsg,ttyangf/nanomsg,smithed/nanomsg,featherweight/ftw-kernel-nanomsg,cosin2008/nanomsg.NET,pch957/nanomsg,wfxiang08/nanomsg,kaostao/nanomsg,ttyangf/nanomsg,zerotacg/nanomsg,TTimo/nanomsg,modulexcite/nanomsg,yan97ao/nanomsg,smithed/nanomsg,modulexcite/nanomsg,linearregression/nanomsg,reqshark/nanomsg,potatogim/nanomsg,thisco-de/nanomsg,wirebirdlabs/featherweight-nanomsg,krafczyk/nanomsg,cosin2008/nanomsg.NET,nirs/nanomsg,imp/nanomsg,modulexcite/nanomsg,kaostao/nanomsg,nirs/nanomsg,yan97ao/nanomsg,JackDunaway/featherweight-nanomsg,reqshark/nanomsg,imp/nanomsg,wirebirdlabs/featherweight-nanomsg,smithed/nanomsg,reqshark/nanomsg,TTimo/nanomsg,tempbottle/nanomsg,potatogim/nanomsg,krafczyk/nanomsg,wfxiang08/nanomsg,pch957/nanomsg,linearregression/nanomsg,zerotacg/nanomsg,ttyangf/nanomsg,hyperfact/nanomsg,linearregression/nanomsg,simplestbest/nanomsg,wirebirdlabs/featherweight-nanomsg,TTimo/nanomsg,pch957/nanomsg,pakozm/nanomsg,simplestbest/nanomsg,gdamore/mamomsg,smithed/nanomsg,featherweight/ftw-kernel-nanomsg,pakozm/nanomsg,tempbottle/nanomsg,gdamore/mamomsg,thisco-de/nanomsg,hyperfact/nanomsg