Moderator: igrr
When you say "it is a little slow", how long does the whole process take? how fast you do need it to be?
When you say "esp#2 keeps connecting and disconnecting from the server", do you mean it is disconnecting from the web server at esp#1, or from the wireless access point?
Unless you have a power constraint on esp#2 (does it run on batteries?), you can program it to be always connected to the wireless access point, all depends on your sketch (perhaps you could post it here). If a simple HTTP request is too slow for you, perhaps you could try to use web sockets or UTP.