--------------Boundary-00P85GJITWY61I3XH3G9D
Content-Type: text/plain;
  charsetso-8859-1"
Content-Transfer-Encoding: 8bit

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 06 Apr 2002 20:48, Minero Aoki wrote:
> Hi,
>
>   In mail "Re: SOAP query"
>
>     Holden Glova <dsafari / xtra.co.nz> wrote:
> > > > /usr/lib/ruby/1.6/net/protocol.rb:345:in `new': Operation already in
> > > > progress - - "connect(2)" (RuntimeError)
> >
> > I'm still stumped over this, spent more hours today trying to remove the
> > problem which I am not sure is soap related, my code related or Ruby
> > related as you have implied may be possible above. If this behaviour was
> > a sign of a defect, does this imply that my version of Ruby may have a
> > defect in the socket area?
>
> Does the attaching patch changes anything?
> This is the patch for ext/socket/socket.c.
>
> -- Minero Aoki
>
> --- socket.c.org	Sat Apr  6 17:56:42 2002
> +++ socket.c	Sat Apr  6 17:57:10 2002
> @@ -711,9 +711,7 @@ ruby_connect(fd, sockaddr, len, socks)
>  {
>      int status;
>      int mode;
> -#if defined __CYGWIN__
>      int wait_in_progress  1;
> -#endif
>
>  #if defined(HAVE_FCNTL)
>      mode  cntl(fd, F_GETFL, 0);
> @@ -748,15 +746,12 @@ ruby_connect(fd, sockaddr, len, socks)
>  	      case EAGAIN:
>  #ifdef EINPROGRESS
>  	      case EINPROGRESS:
> -#if defined __CYGWIN__
>  	      case EALREADY:
>  		wait_in_progress  0;
>  #endif
> -#endif
>  		thread_write_select(fd);
>  		continue;
>
> -#if defined __CYGWIN__
>  	      case EINVAL:
>  		if (wait_in_progress-- > 0) {
>  		    struct timeval tv  0, 100000};
> @@ -764,7 +759,6 @@ ruby_connect(fd, sockaddr, len, socks)
>  		    continue;
>  		}
>  		break;
> -#endif
>
>  #ifdef EISCONN
>  	      case EISCONN:

Thanks for supplying the patch, however I can't seem to get it to work. Here 
is the output from attempting to apply this patch.

synack@eugene:~/downloads/ruby-1.6.6/ext/socket$ patch < socket.diff
patching file socket.c
Hunk #2 FAILED at 746.
Hunk #3 FAILED at 759.
2 out of 3 hunks FAILED -- saving rejects to file socket.c.rej

I've attached the rejected file if it helps.

- -- 
Signed,
Holden Glova
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8rtlK+mF116Lw2cQRAmF7AJ0Ux5jO2am8wd1MfGog+8UHTR8O6gCfTKwN
/EqQdzH5FwctajnyfwSVC1si
-----END PGP SIGNATURE-----

--------------Boundary-00P85GJITWY61I3XH3G9D
Content-Type: text/x-diff;
  charsetso-8859-1";
  nameocket.c.rej"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="socket.c.rej"

KioqKioqKioqKioqKioqCioqKiA3NDgsNzYyICoqKioKICAgICAgICAgICAgICAgY2FzZSBFQUdB
SU46CiAgI2lmZGVmIEVJTlBST0dSRVNTCiAgICAgICAgICAgICAgIGNhc2UgRUlOUFJPR1JFU1M6
Ci0gI2lmIGRlZmluZWQgX19DWUdXSU5fXwogICAgICAgICAgICAgICBjYXNlIEVBTFJFQURZOgog
ICAgICAgICAgICAgICAgIHdhaXRfaW5fcHJvZ3Jlc3MgPSAxMDsKICAjZW5kaWYKLSAjZW5kaWYK
ICAgICAgICAgICAgICAgICB0aHJlYWRfd3JpdGVfc2VsZWN0KGZkKTsKICAgICAgICAgICAgICAg
ICBjb250aW51ZTsKICAKLSAjaWYgZGVmaW5lZCBfX0NZR1dJTl9fCiAgICAgICAgICAgICAgIGNh
c2UgRUlOVkFMOgogICAgICAgICAgICAgICAgIGlmICh3YWl0X2luX3Byb2dyZXNzLS0gPiAwKSB7
CiAgICAgICAgICAgICAgICAgICAgIHN0cnVjdCB0aW1ldmFsIHR2ID0gezAsIDEwMDAwMH07Ci0t
LSA3NDYsNzU3IC0tLS0KICAgICAgICAgICAgICAgY2FzZSBFQUdBSU46CiAgI2lmZGVmIEVJTlBS
T0dSRVNTCiAgICAgICAgICAgICAgIGNhc2UgRUlOUFJPR1JFU1M6CiAgICAgICAgICAgICAgIGNh
c2UgRUFMUkVBRFk6CiAgICAgICAgICAgICAgICAgd2FpdF9pbl9wcm9ncmVzcyA9IDEwOwogICNl
bmRpZgogICAgICAgICAgICAgICAgIHRocmVhZF93cml0ZV9zZWxlY3QoZmQpOwogICAgICAgICAg
ICAgICAgIGNvbnRpbnVlOwogIAogICAgICAgICAgICAgICBjYXNlIEVJTlZBTDoKICAgICAgICAg
ICAgICAgICBpZiAod2FpdF9pbl9wcm9ncmVzcy0tID4gMCkgewogICAgICAgICAgICAgICAgICAg
ICBzdHJ1Y3QgdGltZXZhbCB0diA9IHswLCAxMDAwMDB9OwoqKioqKioqKioqKioqKioKKioqIDc2
NCw3NzAgKioqKgogICAgICAgICAgICAgICAgICAgICBjb250aW51ZTsKICAgICAgICAgICAgICAg
ICB9CiAgICAgICAgICAgICAgICAgYnJlYWs7Ci0gI2VuZGlmCiAgCiAgI2lmZGVmIEVJU0NPTk4K
ICAgICAgICAgICAgICAgY2FzZSBFSVNDT05OOgotLS0gNzU5LDc2NCAtLS0tCiAgICAgICAgICAg
ICAgICAgICAgIGNvbnRpbnVlOwogICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICBi
cmVhazsKICAKICAjaWZkZWYgRUlTQ09OTgogICAgICAgICAgICAgICBjYXNlIEVJU0NPTk46Cg
--------------Boundary-00P85GJITWY61I3XH3G9D--